Revision 9594
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
48 | 48 |
RewriteRule ^(.*?)(?:/(?:index(?:\.\w+)?)?)?$ $1/%1%2?%3 [discardpath,noescape,next,env=needs_redirect:1] |
49 | 49 |
# redirect so REQUEST_URI is populated from REQUEST_FILENAME |
50 | 50 |
RewriteCond %{ENV:needs_redirect} !="" |
51 |
RewriteRule ^.*$ $0 [last,redirect]
|
|
51 |
RewriteRule ^.*$ $0 [discardpath,last,noescape,qsappend,redirect]
|
|
52 | 52 |
|
53 | 53 |
# don't rewrite existing dirs with trailing / |
54 | 54 |
RewriteCond %{REQUEST_FILENAME} -d |
Also available in: Unified diff
web/.htaccess: RewriteRules: added standard [discardpath,noescape,qsappend] options where missing (these should be the default, but aren't)