Click to See Complete Forum and Search --> : How to force requests of *.php to be just * in .htaccess


NeXEA
02-22-2009, 03:00 PM
Hello there.
This is basically just removing the .php.
So if some one is going to go to ./browse.php or /index.php?something=random, they would be forced to /browse or /index?something=random.

I already have this in the .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]


Which will allowed requests without the .php extension, and just matches it up.
Now I need to get it to force it.

This is for "pretty url's" of the sort.

-NeXEA