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
4 4
# don't redirect subdir paths
5 5
RewriteCond %{DOCUMENT_ROOT}/DwC/$1 -d [ornext]
6 6
RewriteCond %{DOCUMENT_ROOT}/DwC/$1 -l
7
RewriteRule ^([^/]*).*$ - [discardpath,noescape,last]
7
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
8 8

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

Also available in: Unified diff