Home » Categories » Multiple Categories

What is the list of default documents for an index page, in order of priority?

When a visitor goes to your site by typing in a directory, such as www.your-domain.com/shop/, your server has a list of file extensions that it will serve as the index page for that directory.  If you have several index files in there, there is a specified order that it will serve those files – first looking for one file extension, then the next, then the next, until it finds a valid index file with a valid extension.

The priority list for Linux/Apache servers is:

  1. index.cgi
  2. index.pl
  3. index.asp
  4. index.html
  5. index.html.var
  6. index.shtml
  7. index.php
  8. index.php3
  9. index.htm
  10. default.htm
  11. default.asp

The priority list for Windows IIS servers is:

  1. index.cgi
  2. index.pl
  3. default.asp
  4. index.asp
  5. index.html
  6. index.html.var
  7. index.shtml
  8. index.php
  9. index.php3
  10. default.htm
  11. index.htm
  12. iisstart.htm
  13. default.aspx
  14. index.aspx
1 (3)
Article Rating (3 Votes)
Rate this article
  • Icon PDFExport to PDF