How to set the default index page with .htaccess?

By default, when you open a website, you will see the contents of the index.html or the index.php file. With .htaccess, you can set any of your files to act as an index file.

First, set the folder in which the .htaccess file will be created, using the .htaccess location form at the top of the page. A click in the form field will open a pop-up window, from where you can browse to the desired website folder.

Then, go to the default index page menu. In there, mark the Set Directory Index: checkbox. In the form field, type in the name of the file, which you wish to be opened when the page is visited.

Once you are done, scroll down to the bottom of the page and click the “Generate” button. The newly created .htaccess file will take effect in up to 15 minutes.