English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

For example:
http://askcomputerexpert.ws43.com/ask won't work, but http://askcomputerexpert.ws43.com/ask.html will . Why?

2006-11-02 03:57:14 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

I'm not taking about the index page, but for the rest...

2006-11-02 04:06:33 · update #1

5 answers

1) If you don't put any extension, the web server is thinking that you want a folder named, ask. Since you don't have such folder, it gives you a 404 error saying that there is no such file.

2) Even if you have a folder called, ask, but if you don't specify any files, by default, it will be looking at the index.html, index.htm, default.asp, ...etc. (whatever files you have defined in your IIS to be the default file)

3) Your file is called, ask.html. That's why when you use ask.html and it brings the page up.

I am a web developer by trade. If you have any further questions, please feel free to contact me.

2006-11-02 07:34:00 · answer #1 · answered by knitting guy 6 · 3 0

because thats how it works, you cannot link to a file without its extension. Only there an exeption if your file is name like index.html

You will have the same resutl if:
http://askcomputerexpert.ws43.com/
http://askcomputerexpert.ws43.com/index.html

HOPE IT HELPS

2006-11-02 12:03:26 · answer #2 · answered by alenm8816 4 · 0 1

Because it is done by a HTML code without that code it is incomplete. Example, it is kind of like putting down a URL with out http://

www.yahoo.com (won't work) incomplete

http://www.yahoo.com (will work) complete

Instead in your case it will link to it but it needs the HTML code to put a direct link to it whether it is HTML or PHP

2006-11-02 12:07:52 · answer #3 · answered by Bullz_ eye 6 · 0 1

that works most of the time but it depends on how their server was setup.

someone above said you can't link to a file without it's extension. of course you can but that is not what the problem is here. they didn't read your question fully before answering.

2006-11-02 12:06:55 · answer #4 · answered by Anonymous · 0 1

If you have writen the page in proper html and have named the first page to index.htm (or html) there should be no problems

2006-11-02 12:04:34 · answer #5 · answered by guruji9x 4 · 0 1

fedest.com, questions and answers