Getting rid of the .html extension

This is a discussion on "Getting rid of the .html extension" within the Starting Out section. This forum, and the thread "Getting rid of the .html extension are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 4th, 2007, 17:35
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Getting rid of the .html extension

How do I get rid of the .html extension so in the address bar my website would show up like this.

http://example.com/link

And not

http://example.com/links.html

Thanks,
Pádraig.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 4th, 2007, 18:45
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

link should be a folder. And the links.html should a default page set up by the server (usually default.htm(.html, .php, etc....) or index.htm (.html, .php, etc....) ) in that folder.

So ... it would be something like this http://www.example.com/link/index.html but you don't have to put index.html

Confused yet?

Last edited by karinne; Jun 4th, 2007 at 19:08.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 4th, 2007, 19:07
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

I am!
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 4th, 2007, 19:48
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

Very.

So in my navigation I would have...

Code: Select all
<div id="nav">
<ul>
<li><a href="/links/">Links</li>
</ul>
</div>
Would that be right?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 4th, 2007, 21:12
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

yes ... and that page you referring to would have to be an index.html page within the links directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 4th, 2007, 21:46
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

For a live example, http://ryanfait.com/ and http://ryanfait.com/index.php are the exact same pages. Because index.php is named as it is, you don't have to specify the file name in the browser.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 4th, 2007, 22:02
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

I think I got it working.

Thanks for the help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jun 9th, 2007, 06:24
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Getting rid of the .html extension

Hahaha...how funny you are Dan. Here is a funny quick fix to get rid of the .html extension if you don't feel like placing it in a folder. All you have to do is rename the .html bit to .php and you are done!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
extension, html, removing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extension Manager Help offtheroad Webforumz Cafe 1 Apr 17th, 2008 17:13
help - frontpage server extension monstermunch Starting Out 23 May 21st, 2007 11:10
How to eliminate the end extension in the address bar? linda_0 Web Page Design 4 Apr 28th, 2007 19:40
Never seen this file extension. TheThrock Hosting & Domains 4 Sep 1st, 2006 12:47


All times are GMT. The time now is 21:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved