Project

General

Profile

« Previous | Next » 

Revision 8060

web/main/**/.htaccess: Removed RewriteCond -l tests because one of the -d or -f tests will always also pass, making the -l test unnecessary

View differences:

web/main/BIEN2/.htaccess
2 2
RewriteOptions inherit
3 3

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

  
9 8
# handle DirectoryIndex (this must be at this position in the rules)
web/main/SALVIAS/.htaccess
2 2
RewriteOptions inherit
3 3

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

  
9 8
# handle DirectoryIndex (this must be at this position in the rules)
web/main/.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)
web/main/DwC/.htaccess
2 2
RewriteOptions inherit
3 3

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

  
9 8
# handle DirectoryIndex (this must be at this position in the rules)

Also available in: Unified diff