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
Related Tags
mod-rewrite × 2210apache-2.2 × 1205
.htaccess × 701
apache-2.4 × 401
rewrite × 364
redirect × 177
mod-proxy × 142
apache2 × 105
php × 98
virtualhost × 91
nginx × 79
rewritecond × 75
linux × 60
wordpress × 57
301-redirect × 57
reverse-proxy × 55
httpd × 52
https × 49
regex × 49
ssl × 46
subdomain × 43
ubuntu × 40
httpd.conf × 40
url × 35
proxy × 30