Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing HTML extension in URL

Status
Not open for further replies.

danielh68

Technical User
Joined
Jul 31, 2001
Messages
431
Location
US
Hi.

Awhile back someone posted on how to remove html extensions from the URL by creating sub-directories and placing an index file with it. Anyhow, I have done that, but now I have another question:

How do you preview locally? For instance, when I link from one page to an index page (in a sub-directory)I get something like this: /support/index.htm. I can preview that fine. However, when I upload it, I need to remove all the index.htm files from the tags, beforehand, so that they will look like this: /support/ . This way the extension doesn't appear in the URL bar, yet is still read by the web server. So, in short, is there a shortcut to previewing this locally without undergoing the task of adding/removing the index.htm from the html tag. One page, I can deal with, but dozens become very difficult.

I hope this is not confusing. Your help is greatly noted.

Thanks,
DanH
 
Hi danielh68!

I think I a bit confused :-)
- Can F12 help you?
- why do you need to use links to folders only, like /support/ ?

Good Luck! :-)
 
its easier for clients

rather than

i dont think it works locally like that...at least when i did it it didnt but when you put it on the web it should be fine unless you try using PWS and put it in the folder then it should work because you will be accessing it through an internal server

[afro] "blah blah blah blah blah..."-Dennis Quaid
 
Thanks Eugene. Thanks deecee.

It just looks better...more pro, I guess. So, I will probably maintain the same procedure, by removing the index, just before upload.

much appreciated,
DanH
 
You can preview all of your pages from dreamweaver as normal, but if you are creating a link to the "index" files just make sure that you strip the filename from the link. If you do this you can preview all you like, and without changing anything once the pages are used and uploaded all of your vital links will then point to your "support/" area. Derren
[Mediocre talent - spread really thin]
 
Keep in mind one thing - giving an exact path (including file name) is much more PRO! When you give only a catalog/directory path (/support/) browser opens file this way:
1) sends request to server;
2) server sends response that there is no such file and this is catalog/directory;
3) browsers again sends request - OK give me the default file for that directory.

If you see, request makes round trip that slows the response - your client must wait too much. So the exact path improves the response time. Good Luck! :-)
 
Thanks for the expert info everyone. I think for this particular project I'm working on, I will implement the exact path as stated by Eugene. I didn't realize the advantages of doing it with an exact path, but now I do. Plus, I have a Thursday deadline and doing it without the extension requires a different thought process that I can't deal with right now. I have so much to do, I becoming a 170 pd. hacking ulcer.

Thanks again,

DanH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top