How to reset the default page in cPanel
For Admin for individual Account
If you are having the Admin Section and using for particular website then the below setting is helpful and it has change the globally for all the account.
The path to be change /usr/local/apache/htdocs/
You could try changing it globally under the Apache httpd.conf file
<IfModule mod_dir.c>
DirectoryIndex abc.pl index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm defaul.html
</IfModule>
Admin Or Reseller For Different Account
If you are having more then one account for different customer please follow the below settings
Create the HTML files and put them under /root/cpanel3-skel and when a new cPanel account is created, those files will be placed under the customers /public_html/ directory. If you do not have root (such as if you're a reseller) then there should be a /cpanel3-skel/ directory under your primary reseller account.
WHM >> Main >> Account Functions >> Web Template Editor
Here you can change the default page
For single User Account
Please login to the cPanel account.
==> Click on the file Manager Under File Section
==> Click on radio button with home directory and click on check box with Show Hidden Files (dotfiles).
==> Click on the root folder as in the cPanel by default public_html is root folder for your account
Please note : some hosting provide may be set the root folder as wwwroot or with another name the please confirm which is your root folder.
==> Under root folder public_html please find .htaccess file, open this file in text editor
==> and make the change with DirectoryIndex index.php home.php [Here you can write your index pages]
- 180 کاربر این را مفید یافتند
مقالات مربوطه
Powered by WHMCompleteSolution