Forum Moderators: mack

Message Too Old, No Replies

How do you get rid of the need for the extension in a url (print ads)

www.example.com/test vs www.example.com/test.htm?

         

alcheme

8:25 pm on Aug 12, 2003 (gmt 0)

10+ Year Member



How do you get rid of the need for the extension when you promote link?

www.example.com/test vs www.example.com/test.htm?

I want readers to be able to put in the url without the need of the extension. Extensions look messy in print ads (ie. *.htm, *.html, etc.).

claus

8:31 pm on Aug 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One method is to create a directory called /test/ and in there store an "index.html" (Unix) or "Default.html" (MS) file. Then you can refer to the file as www.example.com/test in print.

Another involves setting up your server (mod_alias i believe) so that it does not need extensions, but regards all file names as html. This might get messy, as normally files without extensions are considered to be directories, but i am sure it can be done.

/claus

g1smd

10:28 pm on Aug 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month


Also this at: http://evolt.org/article/Towards_Next_Generation_URLs/20/60159/index.html

MonkeeSage

11:48 pm on Aug 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



NN6 / Moz. renders all content as "text/html" by default, so you don't need an extension, just a valid HTML file.

If you search there may be a way to get IE to recognize a content without needing an extension, and then it would work in both browsers without changing any server settings (in case you don't have admin access to the server).

HTH
Jordan

MonkeeSage

12:32 am on Aug 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ps. NM, disregard last post, it does indeed render the HTML correctly with no extension in NN6 / Moz., but it DOES NOT interpret the <style> or <script> tags...doh!

Jordan

g1smd

9:50 pm on Aug 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Extensionless filenames are used in content negotiation, but the files are still supposed to be uploaded to the server with an extension.

With content negotiation between the browser and the server means the server will pick the right file out and serve it to the browser. The browser simply asks for a file by name but does not need to include the filename extension in the request.

BjarneDM

2:27 pm on Aug 19, 2003 (gmt 0)

Wild_Cujo

2:07 pm on Aug 26, 2003 (gmt 0)

10+ Year Member



well if you use IIS just make a virtual directory that redirects to a page...if you use apache create a new directory and have a metatag refresh to the proper page.