Project

General

Profile

« Previous | Next » 

Revision 8045

web/main/**/.htaccess: don't redirect subdir paths: Fixed bug where can only match non-empty string, because otherwise the rule would match this directory, which should still have its redirects processed

View differences:

.htaccess
31 31
# don't redirect subdir paths
32 32
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext]
33 33
RewriteCond %{DOCUMENT_ROOT}/$1 -l
34
RewriteRule ^([^/]*).*$ - [discardpath,noescape,last]
34
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
35 35

  
36 36
# handle DirectoryIndex (this must be at this position in the rules)
37 37
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]

Also available in: Unified diff