Click here to Skip to main content
15,915,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a website and I want to hide page extension(.html or .php) from the website's url. I have also use .htacess file for that but its not working.
Please anybody help me.
Posted
Comments
TryAndSucceed 4-Sep-13 17:41pm    
Please share what you have tried.
Gaurav Kumar Gaur 5-Sep-13 2:52am    
I have use this in the .htacess file but I don't know how to use this file in HTML page.

RewriteEngine on
RewriteCond %{index.html} !-d
RewriteCond %{index.html}\.html -f
RewriteRule ^([^/]+)/$ $1.html

try this link you can get an idea, this link explains changing extensions of the page/file



http://blogs.msdn.com/b/carlosag/archive/2008/09/02/iis7urlrewriteseo.aspx[^]
 
Share this answer
 
Use this


<a href="http://stackoverflow.com/questions/13853788/how-to-hide-html-extension-from-the-website-url"><pre lang="text">http://stackoverflow.com/questions/13853788/how-to-hide-html-extension-from-the-website-url
[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900