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. You can also define more than one file like below. In this Apache will serve one of below file default file.