How to setup Default web page in cPanel? Print

  • 0

The below steps will assist you in setting the default home page on your site. 

Step1: Login to Cpanel Panel.

Step2: Open File Manager in Cpanel.

Step3: Click on Settings at the top right corner. Select the Document Root and ensure that Show Hidden files(dotfiles) are selected. Next, click on the Save button.

Get best Shared Hosting

Step4: Open the ".htaccess" file and click on "Edit."

Step5: Add the following line to set the home.php as the default page in the ".htaccess" file.

DirectoryIndex home.php

You can set any page as the default page for your website.

Step6: Click on Save Changes. We have successfully set home.php as the default page.

Now, whenever you access your website, it will load the home.php as the default page.

Get best Shared Hosting

Was this answer helpful?

« Back