views:

15

answers:

0

What is wrong with this script? The server returns a 404 error whenever I type in a url without an extention.

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC]

Does anybody have a better way of doing it?