Knowledgebase


Portal Home > Knowledgebase > Hosting FAQ's > How to remove the .html extension from the URL ?

How to remove the .html extension from the URL ?

Add the following code in .htaccess file
Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.html [NC,L]


Also Read