How one can change default index web page in cPanel

4 minutes read

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:

DirectoryIndex welcome.html

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.]

 

Conclusion

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.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

I need to reset my account just like the one it was bought. Are you able to reset my WHM to default? I’m new to this!! That was a current help ticket we obtained at our cPanel Help Companies the place we keep servers of on-line service suppliers. We’ve seen we...
A quick introduction about touchdown web page fundamentals A touchdown web page helps in changing the web site guests into shopping for clients. Its major purpose is to influence your audience to purchase your services or products. These pages are additionally...
Servers might be unpredictable, so your web sites! A web site can crash because of causes like fallacious file edits, permission issues, web site upgrades, and many others. In all these situation, it’s the backup that comes useful. In CPanel servers, customers...
If you’d like extra e-mail subscribers, leads and gross sales – you’re going to want to construct conversion-focused touchdown pages. You possibly can simply slap a kind on any common internet web page however that’s not going to ship the type of conversion ch...
A touchdown web page is likely one of the important pages to have in your weblog. It’s what helps you develop your electronic mail record and get your guests to purchase the services you’re selling. But, it might shock you what number of bloggers—and even skil...
Do you’ll want to change your WordPress URL? Whether or not you’re shifting from HTTP to HTTPs, altering your area title, migrating from native server to reside web site, or transferring to a subdomain, you will have to know learn how to change your WordPress ...