Q. How to Change the Default Index Page with .htaccess in Apache? How to Set the default index page using .htaccess? How to configure the specific page to use as default page with .htaccess?
This tutorial will help you to change the default page in the .htaccess file. To do this first make sure you are using Apache web server and you have enabled .htaccess for the virtual host. Let’s edit the .htaccess file on your website document root and add a DirectoryIndex entry followed by file name. Now Apache will use this file as your default file.
#Default index pageDirectoryIndex home.html
You can also define more than one file like below. In this Apache will serve one of below file default file.
#Multiple default index pageDirectoryIndex home.html index.html index.php index.htm