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.
- index.html.var
- index.htm
- index.html
- index.shtml
- index.xhtml
- index.wml
- index.perl
- index.pl
- index.plx
- index.ppl
- index.cgi
- index.js
- index.jp
- index.php4
- index.php3
- index.php
- index.phtml
- default.htm
- default.html
- home.htm
- index.php5
- Default.html
- Default.htm
- home.html
Note: Web Hosting (cPanel) file structure is case sensitive because it uses Linux.