6.4 index.html File
If a user specifies a URL address that ends with a directory name, then the web server will automatically look for a file named index.html or index.htm and attempt to load it into a browser. This occurs when you specify a URL for a link’s href value and also when you enter a URL in a web browser’s address box.3
The default searched-for file can be reconfigured by the web server’s administrator. It’s common for Microsoft IIS web server administrators to use default.htm as another default filename for displaying a web page when the URL address ends with a directory name. According to the coding-style conventions in Appendix A, we recommend that you use index.html for your home page file names because that name is the most ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access