What’s a webserver directory index anyway?
When an HTTP client (generally a Web browser) requests a URL that points to a directory structure instead of an actual Web page within the directory, the Web server will generally serve a general page, which is often referred to as a main or “index” page.
Most often index.html or index.php are used by developers, but we can set it to any file we want to with the help of .htaccess
on your .htaccess file write:
DirectoryIndex home.htmlAbove code is just telling that I want the file home.html be by default index page.
but you can also do this:
DirectoryIndex home.html index.html index.php
Above is telling the server that to use home.html as my default index page and if not use index.html else use index.php and so on…
So that’s it, fairly easy…


