Noticed Apache strange behavior.
I’m using mod_rewrite to redirect every
RewriteCond %{REQUEST_URI} !^.*css|gif|js|png$
RewriteRule ^(.*)$ index.php?q=$1 [QSA]
So when i type
http://www.example.com/something
in browser, inside index.php $_REQUEST[‘q’] returns ‘something’
But besides index.php there are some other php files in root folder (profile.php, for example).
So when i type
www.example.com/profile
inside index.php $_REQUEST[‘q’] returns ‘profile.php’
Why does this .php appear?
My guess is that
MultiViewsis enabled. Try disabling it by adding:To your
.htaccessfile.