Project

General

Profile

« Previous | Next » 

Revision 8376

web/**/.htaccess: Added "don't rewrite existing paths" and "handle DirectoryIndex" rules to all .htaccess files, not just those for dirs that contain subdirs, to facilitate linking directly to files in the filesystem without first needing to retrofit the applicable .htaccess file.

View differences:

.htaccess
5 5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6 6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7 7

  
8
# don't rewrite existing paths
9
RewriteCond %{REQUEST_FILENAME} -d [ornext]
10
RewriteCond %{REQUEST_FILENAME} -f
11
RewriteRule ^.+$ - [discardpath,noescape,last]
12

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

  
8 16
RewriteRule ^.*$ http://www.tdwg.org/standards/117/download/#/v101.xsd#$0 [discardpath,noescape,last]

Also available in: Unified diff