Your “index” or “home” Page

Your “index” or “home” Page

If you want your visitors to see a home page by typing http://yourdomainname.com/ instead of http://yourdomainname.com/mypage.html, you need to define a “default” page. On some servers, this page must be named index followed by an allowable extension. Allowable index page names are:

index.htm
index.html
index.shtml
index.cgi
index.php

IMPORTANT: Unix, many servers’ operating system, is case-sensitive. Your index page must be named with all lower-case letters. Index.htmldoes not equal index.html.

Your account already contains an index page when we set the account up — that’s the “Coming Soon” page you see when you browse your domain name or IP number. To replace that page with one of your own, simply delete the file named index.html and replace it with your own index page.

Order of Precedence

If you have have more than one file named index.* in your directory, the web server will follow a default order of precedence. The precedence may vary by server, but generally it will be similar to this:

index.cgi ? index.php ? index.html ? index.htm ? index.shtml

You can change the order of precedence and even define competely new index page names by creating (or editing) a file named .htaccess in your www directory (or in any subdirectory of your www directory. Just add the following line to your .htaccess file:

DirectoryIndex home.html index.html index.shtml index.cgi

The file names that appear after the DirectoryIndex specification specify allowable file names that will serve as index pages for the directory. The order in which those file names appear specify the order of precedence.