Possible Duplicate:
Removing .php extention with .htaccess not working
What is wrong with this script? The server returns a 404 on whenever a link without a .php extention is clicked/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC]
My problem is that i've been removing the extentions fine on my computer locally, but when I transfered it over to the server, they only sometimes work. They work when something is entered directly in the url bar, but when a link is clicked on one of my pages (none of them have the .php in them) i get a 404 error