This article is not available in Malay, view it in English

How to set Default page for cPanel hosting account

1.    Kindly login to the Cpanel with with the URL as http://domainname.com/cpanel 


       or http://domain_name:2083 (with SSL) or http://domain_name:2082  (NON SSL).


2.    Click on "File Manager" under the "Files" category to proceed.




3.    Click on "Settings" from the top right corner of the page. Select the Document Root and make sure Show Hidden files(dotfiles) is selected. Remember to click save.


 

4.    Right click on ".htaccess" file and then click on "Edit" to proceed.



5.    A pop up page will be shown, then click on the "Edit" button to proceed.




6.    Typically, the default page of a domain is refer to index.* file . As an example, 


       the default page when browse to http://abc.com will be refer to http://abc.com/index.htm usually. 


       Actually the default page can be set to other than index.* by using DirectoryIndex directive in .htaccess file.


      If you want to change your own DirectoryIndex to either add a different filename, shorten the list, 


      or change the order of the list, just create a file named .htaccess in the directory where you want 


      this behavior to occur. Inside the .htaccess file, put a single line beginning with DirectoryIndex 


      followed by the list of filenames that you want Apache to serve first when a directory has been 


      requested, like so:



7.    Remember to click "Save".






Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.