Project

General

Profile

« Previous | Next » 

Revision 8399

web/**/.htaccess: parse dotpath in the query string: Remove any index.* suffix, which is added by MultiViews in Apache 2.4

View differences:

.htaccess
4 4

  
5 5
# parse dotpath in the query string
6 6
RewriteCond %{QUERY_STRING} ^(?!&).+$
7
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$
8
RewriteRule ^.*$ /dotpath.php%1 [discardpath,noescape,last]
8 9

  
9 10
# don't rewrite existing paths
10 11
RewriteCond %{REQUEST_FILENAME} -d [ornext]

Also available in: Unified diff