1 vote

Apache 2.4 expr - how to load a html file via RewriteRule?

RewriteBase /subfolder/ RewriteCond "expr=%{DOCUMENT_ROOT}/subfolder/cache/%{md5:%{REQUEST_URI}?%{QUERY_STRING}}\.html" -f RewriteRule ^(.*)$ /cache/%{md5:%{REQUEST_URI}?%{QUERY_STRING}}\....
  • 12.2k
1 vote
Accepted

mod_rewrite rules on subdirectory not woring due to parent rules

It looks like your <Directory /path/to/app/public/api> container is inheriting the RewriteBase directive from the parent <Directory /path/to/app/public> container. This will happen if ...
  • 12.2k

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