Domain Name

How Can I Change the Document Root for an Addon Domain or Subdomain?

The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.

The document root is a folder that is unique to a domain. Even the addon domains or subdomains in cPanel have their personal document root folder. cPanel allows users to change the document root for their addon domains and subdomains.

The technique is nearly identical for both Addon Domains and Subdomains.

Follow these procedures to modify the Document Root of the Addon Domain:

1. Go to your cPanel account and log in.

2. Scroll down to the “Domains” section and select “Addon Domains” from the drop-down menu.

3. Just go to the “Modify Addon Domain” section and click the edit icon of the addon domain you want to alter in the document root.

4. A window called “Change Document Root” will appear. Click the “Change” button after entering the new document root in the “Document Root” field.

5. The new document root for your addon domain will be established by cPanel.

Follow these procedures to modify the Document Root of the Subdomain:

1. “Subdomains” can be found in the “Domains” section.

2. In the “Modify a Subdomain” section, click the edit icon of the subdomain you want to change in the document root.

3. Enter the new document root in the “Document Root” field and click the “Change” button in the “Change Document Root” window.

4. It will change your subdomain’s document root.

Note of importance: Changing the document root might sometimes cause the site to malfunction. It occurs when the web application or database’s linkages and paths are missing. If this happens, contact the system administrator or developer.

Change the Document Root of an Addon Domain or Subdomain in cPanel in this manner. I hope you have truly understood everything, but if you have any questions, please contact our bodHOST team. Also you Check out our web hosting plans right now.

Leave a Reply

Your email address will not be published. Required fields are marked *