I\'ve recently added this little bit of code to my .htaccess
file:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Rewri
First off, here is some reference to better understand the mod_rewrite module:
mod_rewrite Documentation
mod_rewrite Cheat Sheet
The problem you are seeing is that it is checking for both conditions, the default is [AND], when you only want to check for one, try this:
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]