Revision 8060
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
27 | 27 |
|
28 | 28 |
# don't rewrite existing paths |
29 | 29 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
30 |
RewriteCond %{REQUEST_FILENAME} -f [ornext] |
|
31 |
RewriteCond %{REQUEST_FILENAME} -l |
|
30 |
RewriteCond %{REQUEST_FILENAME} -f |
|
32 | 31 |
RewriteRule ^.*$ - [discardpath,noescape,last] |
33 | 32 |
|
34 | 33 |
# don't redirect subdir paths |
35 |
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext] |
|
36 |
RewriteCond %{DOCUMENT_ROOT}/$1 -l |
|
34 |
RewriteCond %{DOCUMENT_ROOT}/$1 -d |
|
37 | 35 |
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last] |
38 | 36 |
|
39 | 37 |
# handle DirectoryIndex (this must be at this position in the rules) |
Also available in: Unified diff
web/main/**/.htaccess: Removed RewriteCond -l tests because one of the -d or -f tests will always also pass, making the -l test unnecessary