Skip to main content
4 votes

How to match beginning of file name using htaccess

You've not stated the "specific directory" in which the .htaccess file and files you are protecting is located? (Although that shouldn't matter if we rework the rule.) RewriteCond %{...
MrWhite's user avatar
  • 13k
1 vote

apache redirect/rewrite http to https with many virtualhosts

You could use a redirect to https with the %{http_host} variable. Just bind to port 80 and redirect everything to https. No need to know what the hostname is. Untested but this should work : <...
user189695's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible