Help - Search - Members - Calendar
Full Version: .html in the URL
HTMLHelp Forums > Web Authoring > Web Site Functionality
hotrod
Hey,

I'm pretty sure this is a stupid question, but I cant seem to figure it out.

As of now whenever I go to a page on my website the url ends with ".html". So, for example if I went to the contact us page of my site the url would be "www.mysite.com/contact-us.html". However, I don't want the ".html" at the end. Now, I know that it ends with this because the file I have for the contact us page is "contact-us.html" But I want to be able to go to "www.mysite.com/contact-us" and access the contact us page because that looks more professional. How do I do that?

Thanks in advance!
Darin McGrew
The easy way is to create a directory called contact-us and to rename contact-us.html to contact-us/index.html (or whatever the default directory index file is on your server). Then you can link to http://example.com/contact-us/ (note the trailing slash).

A more complicated way is to configure your server to configure your server to use content negotiation, so that it sends contact-us.html when it gets a request for contact-us.
hotrod
QUOTE(Darin McGrew @ May 2 2009, 12:53 AM) *

The easy way is to create a directory called contact-us and to rename contact-us.html to contact-us/index.html (or whatever the default directory index file is on your server). Then you can link to http://example.com/contact-us/ (note the trailing slash).

A more complicated way is to configure your server to configure your server to use content negotiation, so that it sends contact-us.html when it gets a request for contact-us.



Ah, I knew it was something simple.

Thank you!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.