|
|||||||||||||
|
So you've designed your first web page and managed to upload it to the web server. However, when you visit the site, you get a list of all the files in your home directory instead of a web page.
This is a common mistake that new web designer's make. The computer has no way of divining the name of the file to server when people visit http://www.yourdomain.com or http://home.frognet.net/~your_username so it needs to be told which page to serve first. The first page of your site needs to be named one of the following:
index.html
index.htm
index.php
index.cgi
index.shtml
... with the first one listed taking precedence over the one below it. This means that if you have both an index.html file and a index.htm file, the index.html file will be served to your visitors. Keep in mind that the filename's case does matter. Index.html is not the same as index.html as far as the computer is concerned.
Rename the first page of your site, and you should have no problems.