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

I've got a few different websites, and I've noticed that on the servers that run PHP, index.php is the front page, but in ASP it's default.asp. Is this because one is server-side and the other isn't? I'm a little rusty beyond old-school HTML. :-)

2006-08-05 21:35:36 · 4 answers · asked by Pastor Chad from JesusFreak.com 6 in Computers & Internet Programming & Design

I'm not asking this for any practical reason. It's just really bugging me for the sake of trivia, so that's why I'm asking. :-)

2006-08-05 21:50:27 · update #1

4 answers

This is entirely dependant upon the web server.

In Windows (the Internet Information Services web server), microsoft has decided to call the default page "default.htm"

In Apache, the default page is index.html

In both cases (as well as most other web servers) you can define the default page to be anything you want.

The various server side programming languages often register default pages with the web server. In most cases, they just add what they want to the list of defaults.

2006-08-05 21:45:34 · answer #1 · answered by lwcomputing 6 · 0 0

This is because Microsoft have to be different, so when they developed Internet Information Server they had the deafult homepage called default.asp whereas everyone else uses index.*

Usually there are several options which are valid for a default start page and IIS will usually look for index.html if it can't find default.asp.

Most web servers allow you to customise the name of the default start pages the server should look for.

2006-08-05 23:53:38 · answer #2 · answered by sellis_sellis 2 · 0 0

Is there a reason ASP might need/want to make allowances for index pages (either HTML or PHP or otherwise) to be active in the same directory?

I've never used ASP, so I'm not certain on this point.

2006-08-05 21:45:01 · answer #3 · answered by Arkangyle 4 · 0 0

Possibly, but on most servers you can configure what page is served up when you actually request a directory - which is what you do when you request http://www.example.com/ or http://www.example.com/this/is/a/sub-dir/

So your filename could be beer.php, or mastercard.asp , for instance.

2006-08-05 21:43:28 · answer #4 · answered by Stephan B 5 · 0 0

fedest.com, questions and answers