RewriteRule ^/directory(.*)$ https://%{HTTP_HOST}/directory$1 [L,R]
url.rewrite = ("^/directory(.*)$" => "https://%{HTTP_HOST}/directory$1")