I have an index.html and an index.php file. Which is displayed?
If your web hosting package, www.example.com, supports PHP (Medium or larger), the index.php is displayed upon entering
https://www.example.com. To view index.html,
people must go directly to the page, for example by entering https://www.example.com/index.html.
Here is the web server file priority list:
Web Starter
- index.html
- index.xhtml
- index.htm
Web Medium and greater
- index.php
- index.cgi
- index.shtml
- index.html
- index.htm
It is possible to override this in a .htaccess file by setting DirectoryIndex
to the file names you want to use as standard. See also the DirectoryIndex documentation for Apache.