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

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

Also available in: Unified diff