Eliminate file extension in links

Discuss all aspects of programming here.

Moderator: The Mod Squad

Eliminate file extension in links

Postby fict0n » Sun Mar 06, 2005 5:04 pm

I'm making my first webpage and I want to link to a directory rather than an html file, so that when the page is linked, it displays the directory name rather than the html file name.

e.g.:

Code: Select all
<a href="/directory/">

as opposed to

<a href="/directory.html">


I would have tried to search, but I really can't think of any queries that would turn up relevant results..

Thanks a lot.
fict0n
Initiate
Initiate
 
Posts: 58
Joined: Wed Aug 21, 2002 5:27 pm

Postby Toby B. » Sun Mar 06, 2005 11:13 pm

If you are running Apache you just need to set IndexOptions accordingly
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby fict0n » Mon Mar 07, 2005 3:53 am

I'm simply working off a free webhost. Is there any low-fi method?
fict0n
Initiate
Initiate
 
Posts: 58
Joined: Wed Aug 21, 2002 5:27 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron