New account creation in cPanel is fairly problem free. However, issues go for a toss when the wrong web site web page exhibits up.
Often, the unsuitable web page exhibits up on account of unsuitable area configuration in cPanel.
And, the web site homeowners usually contact us to repair their web site as a part of our Server Administration Providers.
At present, we’ll see on the way to change default index web page in cPanel.
Default index web page on new account
Earlier than discovering a repair for the issue, let’s have a fast look on how the default web page exhibits up in a web site.
In cPanel, upon new account creation, server routinely copies a set of recordsdata and folders from the skeleton folder to consumer’s house listing. This could additionally embrace a default index.html file within the public_html folder of the web site. By default, this web page exhibits up whenever you entry the brand new web site from a browser.
Often, customers add contents to their web site folder utilizing FTP or cPanel’s File Supervisor. And, when the area has incorrect settings, unsuitable index web page exhibits up.
Causes for exhibiting unsuitable index web page
In lots of instances, even after importing the web site content material to the public_html folder of the web site, unsuitable web page exhibits up. Let’s check out the assorted causes for this.
1. Unsuitable .htaccess entries
By default, the next rule set within the .htaccess file of the web site controls the index web page.
DirectoryIndex index.html index.php
The .htaccess file is often learn from left to proper and choose the primary accessible web page. For instance, on this case, the online server will search for the index.html file, whether it is lacking, it is going to search for the index.php file and so forth.
Nonetheless, when the newly designed web page has a distinct identify, say house.html, it might by no means present up because the default web page.
2. Incorrect file identify or path
Once more, another excuse for incorrect index web page exhibiting up on web site occurs whenever you neglect to overwrite index.php or index.html file throughout file add. Consequently, the default index web page nonetheless stays on web site and that exhibits up.
The overwrite possibility in cPanel’s File Supervisor appears to be like as proven:
Equally, recordsdata in servers are case delicate. If the index file has a reputation INdex.php, it don’t match index.php file and leads to unsuitable web page too. From our expertise in managing servers, our Devoted Engineers usually see clients importing file to the unsuitable listing. This once more causes default index web page errors on the web site.
three. Unsuitable IP handle settings for area
Usually unsuitable IP handle within the internet server configuration additionally create issues with default index web page. In such instances, area’s DNS would take it to the proper server. However, inside Apache, it is perhaps pointing to unsuitable IP. Consequently, it is going to present the default cPanel index web page.
How we set correct index web page for web site
We simply noticed the assorted causes for the index web page drawback on the web site. Now, let’s see how our Assist Engineers repair it.
1. Confirm area IP
We start investigation by checking whether or not the web site resolves accurately to the server. Then, we affirm the IP handle set within the Apache configuration file httpd.conf
In case of mismatch, we edit the configuration file and set it to the proper IP handle.
2. Guarantee index file exists
When the IP handle settings are right, we test the presence of index file within the doc root of the web site. As an example, in cPanel, it needs to be current within the public_html folder.
When customers add recordsdata to the sub folders, we copy the recordsdata to the proper folder. Moreover, we set the proper identify for the index file, set correct permissions, and so forth.
three. Modify .htaccess
In some instances, we may have to change the .htaccess file to level to the proper index file.
If the newly designed house web page of the web site is welcome.html, we set the public_html listing .htaccess entry as:
To edit the .htaccess, we both use the command line editor in SSH or cPanel’s File Supervisor. The edit web page in File Supervisor appears to be like as proven.
That fixes the issue and proper file exhibits up because the default index web page of the web site.
[Trouble seeing correct page on your website? We can make it working.]
In our huge server administration expertise, unsuitable index web page exhibits up on account of many causes like lacking recordsdata, incorrect web site settings, and so forth. At present, we noticed the highest causes for index web page errors and the way to change default index web page in cPanel.