You can set the custom index page to your website by modifying the .htaccess file. This article will guide you to set the custom index page from cPanel.
- Login to cPanel.
- Under Files section, locate and click on File Manager option.
- Navigate to your website folder (public_html or sub directory) and search for the .htaccess file. If .htaccess file is not there in your directory then create it manually.
- Right click on .htaccess file and select the Code Edit option to open this file in editor.
- Add following line at top of this file and save the .htaccess file.
DirectoryIndex FileName.html // Replace FileName.html with your actual index file name.
For example, if you want to set default.php file as the default page of your website then add the below line in the .htaccess file.
DirectoryIndex default.php