View Full Version : accepting no extension and .html and .php in htaccess?

02-10-2007, 05:56 AM
Im using htaccess to remove the .php file extension in urls however it is it possible to write a rule that could let a user type any of the following to access a page.php file on my server:

(or) http://www.domain.com/page.html
(or) http://www.domain.com/page.php

This is my current htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]