Home / Web Development / Removing file extensions using htaccess

Removing file extensions using htaccess


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f

RewriteRule ^(.*)$ $1.html
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php




Loading Facebook Comments ...
Social Media Auto Publish Powered By : XYZScripts.com