Contact Support : +64 220 256 070

Aimvm
Blog

How to change the default index page of your website?

Posted on: October 22, 2014

This lesson will teach you on how to change the default index page of your site.

As default the Webserver will read the index file in the document root of your account and follows the order index.htm, index.html, index.php. However, in this example we are showing how to set files with other names as default index page.

Steps:

1) Login to your cPanel account.

2) Open ‘File manager’ option under the menu Files.

o1

3) Go to the document root location of the account.

o2

4) Create the file .htaccess.

o3

o4

5) Add the following  codes in the .htaccess file.

#Alternate default index page
DirectoryIndex file.html

6) Save and exit.

Now the your site will load ‘file.html’ instead of ‘index.html’. You can replace it with any file you may wish to use as index.

If you have any questions, you can open a support ticket with us.

 

Search Blog