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.
|
|
|
|
|
![]() |
||
Getting rid of the .html extension
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
Re: Getting rid of the .html extension
I am!
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#4
|
|||
|
|||
|
Re: Getting rid of the .html extension
Very.
So in my navigation I would have...
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
Re: Getting rid of the .html extension
I think I got it working.
Thanks for the help! |
|
#8
|
|||
|
|||
|
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!
|
![]() |
| Tags |
| extension, html, removing |
| Thread Tools | |
|
|
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 |