Hiding file extensions through .HTACCESS

A

Anonymous

Guest
Hi guys,
I came across this on the web:

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ /$1.php [L,QSA]

I created a .htaccess file in my project root folder,
pasted it, saved it, but nothing changed.

If is any relevant, I'm running it locally (XAMPP)

Thanks in advance,
Mike
 
Verify in your apache modules that you have your rewrite_module enabled
 
Back
Top