Revision 8057
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
21 | 21 |
|
22 | 22 |
# use separate lowercase version when available |
23 | 23 |
RewriteCond %{DOCUMENT_ROOT}/$1 !-d |
24 |
RewriteCond %{DOCUMENT_ROOT}/.$1 -d |
|
25 |
RewriteRule ^([^/]*)(/.*)$ .$1$2 [discardpath,noescape] |
|
24 |
RewriteCond .$1 ^.*$ |
|
25 |
RewriteCond %{DOCUMENT_ROOT}/%0 -d |
|
26 |
RewriteRule ^([^/]*)(/.*)$ %0$2 [discardpath,noescape] |
|
26 | 27 |
|
27 | 28 |
# don't rewrite existing paths |
28 | 29 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
Also available in: Unified diff
web/main/.htaccess: use separate lowercase version when available: Generate the new dirname with a separate RewriteCond so its value can be used both in the -d test and in the replacement string, rather than separately for each