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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I? "www.xyz.com/test" instead of "www.xyz.com/test.htm&quo

Status
Not open for further replies.

prophotodx

Technical User
Jan 20, 2003
147
Is there a simple way to make a document on a site come up without typing the text ".htm" or ".html"??

I have tried to create a document and then not type in the extension but it does not work.....I am sure I am missing something but not sure what it is...

THANKS!!

 
The ' would be read as referring to a folder rather than a file, so yes, it is possible. On your server there are certain files, (index.html, default.html, home.html) which are read automatically when a folder is called and no file. For example, is actually If you find out which files your server parses as default page you can create a subfolder on your root called 'test' and then put that html file in that folder and call it with the syntax mentioned above. Hope it helps.
 
so you mean the browser must differentiate between

test.htm, test.php, test.jsp, test.html, test.shtml, test.dhtml, test.cgi and the many other extensions there are

i didnt know typing in ".htm" was such a grand effort on anyones part.

zzzzzz
 
As decree mentioned, this can cause a performance hit on the server not to mention problems if there are more than 1 file with the same name but different extensions.

If you need to do this, use a subdirectory or create an Alias that points to a specific file, don't use negotiation methods for files unless there is a very good reason.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
If you have control over the server you can just set what file(s) it looks at by default and in what order it looks at them with no difficulty at all. On a MS server it is accomplished through IIS.

The standard default names for most hosting companies are index.htm, index.html, default.htm, default.html. If you are using a scripting language they probably also support the extension for that language. Example: default.asp, default.cfm, default.php etc...

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top