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:

web/main/SALVIAS/.htaccess
4 4
# don't redirect subdir paths
5 5
RewriteCond %{DOCUMENT_ROOT}/SALVIAS/$1 -d [ornext]
6 6
RewriteCond %{DOCUMENT_ROOT}/SALVIAS/$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]
web/main/.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]
web/main/DwC/.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