Hiding file extensions
Posted by: Potatis
Posted on: 2009-05-07 23:46:00
Hi I want to hide the .php file extensions on my website, they are ugly.
I created a .htaccess file using code form the wiki that is supposed to do the job:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /$1.php [L,QSA]
I uploaded the file as ASCII not binary, following the instructions. No word wrap in the original text file. The file is in my root dir as are all the php files. All of the php extensions still show.
Can anyone suggest what I may be doing wrong?