Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14120 reviews 1680 hosting providers

Questions & Answers

Hidding .html extension

May 8, 2012 by rooby
Hi all,
is it  possible to hide .html extension by writing command in  .htaccess .For or example, if  my web page address is  www.example.com/dedicated.html I want it to show as www.example.com/dedicated
How can  do that? I would really appreciate your help in this.
thanks

2 Answers

0 votes
May 8, 2012 by dona
this code will do the trick
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
0 votes
May 8, 2012 by WebGuru