Home Page Naming Conventions

Article No. 63
Created: 01:02 AM 04.16.04
Author: Support
Original URL: http://myonlinehostingsupport.com/question.php?qstId=63


When someone searches for your domain in a browser, the web server will automatically look in the public directory for an index file. It will search for specific files in this order: index.html, index.htm, index.shtml, index.php, and index.phtml. The server will return the first index file it finds, regardless of any other files you have. Therefore, it is best to keep only one index file in your public directory to avoid confusion.

If you want your home page to be titled differently from the above names, we recommend that you use the DirectoryIndex command in an .htaccess file. Alternatively, you can use a redirection script.

Back to original article