I am working on UBUNTU 12,04. Here is my .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ something.php?url=$1 [QSA,L]
The problem is when I type in localhost/something for the request,the request become something.php automatically if the file does exist. But it works fine in Windows when I type in localhost/something $1 still equal to something. Is there anyway to disable this setting?
Sounds like Apache’s MultiViews feature is enabled.
Options -MultiViewsin that same .htaccess will disable it for that directory.Alternatively, you can remove
MultiViewsfrom theOptionsdirective that probably exists for your document root in your httpd.conf and to disable this server- or host-wide.