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
3 3

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

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

Also available in: Unified diff