What file displays when someone browses to my domain name?

When a visitor types your domain name in to their browser they are automatically directed to your website's default file. For example, to go to Yahoo!, you type yahoo.com. It doesn't show up in your browser, but you're actually looking at the index.html page. Try it yourself, type yahoo.com/index.html in your browser.

You might have guessed, index.html file is a default file. If it's the only default file in the root directory, it automatically displays when someone goes to your domain name.

If you have more than one default file in a directory, the server decides which one takes priority, and then displays that file. Understanding the order the files are served is key to making sure the correct page displays on your website.

  1. Index.html
  2. Index.htm
  3. Index.shtml
  4. Index.shtm
  5. Index.stm
  6. Index.php
  7. Index.php3
  8. Index.asp
  9. Index.aspx
  10. Default.htm
  11. Default.html
  12. Default.asp
  13. Default.aspx

You can also change your hosting account's default file (more info).

Warning: Some files listed in Plesk, like Index.cfm, will not actually work because we don't support the underlying technology to support the file.

Hjalp denne artikel?
Tak for din feedback.
Det glæder os, at vi kunne hjælpe! Er der andet, vi kan gøre for dig?
Beklager. Er der andet, vi kan gøre for at hjælpe dig?