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
32 32
# parse dotpath in the query string
33 33
RewriteRule ^dotpath - [discardpath,noescape,last]
34 34
RewriteCond %{QUERY_STRING} ^(?!&).+$
35
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
35
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$
36
RewriteRule ^.*$ /dotpath.php%1 [discardpath,noescape,last]
36 37

  
37 38
# don't rewrite existing paths
38 39
RewriteCond %{REQUEST_FILENAME} -d [ornext]

Also available in: Unified diff