Project

General

Profile

« Previous | Next » 

Revision 14496

web/.htaccess: don't rewrite existing files/dirs: allow forcing rewrite of existing things with %{ENV:ignore_fs}

View differences:

trunk/web/.htaccess
101 101
RewriteRule ^(.*/)?$ $1index.htm [discardpath,last,noescape,qsappend]
102 102

  
103 103
# don't rewrite existing dirs with trailing /
104
RewriteCond %{ENV:ignore_fs} =""
104 105
RewriteCond %{REQUEST_FILENAME} -d
105 106
RewriteRule ^.+/$ - [discardpath,last,noescape,qsappend]
106 107

  
107 108
# don't rewrite existing files
109
RewriteCond %{ENV:ignore_fs} =""
108 110
RewriteCond %{REQUEST_FILENAME} -f
109 111
RewriteRule ^.+$ - [discardpath,last,noescape,qsappend]
110 112

  

Also available in: Unified diff