Project

General

Profile

« Previous | Next » 

Revision 8400

web/**/.htaccess: parse dotpath in the query string: Use just dotpath instead of dotpath.php because the extension is added automatically by MultiViews

View differences:

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

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

Also available in: Unified diff