...

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



karlosio
02-10-2007, 04: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:

http://www.domain.com/page
(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]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum