How to modify the document root for an addon domain in cPanel?

How to modify the document root for an addon domain in cPanel?

This article guides you step by step on how to modify the document root for an addon domain in cPanel.

Step 1: Log in to cPanel

Step 2: Under Domains choose Domains.



Step 3: Double-click the Manage option under the Actions column beside the domain you want to modify. Here we are looking to modify the document root for example2.com.



Step 4: Type in the new folder you’d like to have that domain pull its files from, and click Update.
Note: This action changes where the web server searches for your files. It does not rearrange your files in any way.

You should now see a Success message in cPanel saying the document root has been updated on the upper right hand corner.



If you need any further help, feel free to open a ticket with us.


    • Related Articles

    • How to delete an addon domain from cPanel?

      The article guides you through the steps to be performed to delete an addon domain from your cPanel Account. Step 1: Log in to cPanel Step 2: Under Domains choose Domains. Step 3: Click the Manage option under the Actions column beside the domain you ...
    • How to add a Addon domain in cPanel?

      The article guides you through the process to add an addon domain in your cPanel account. Step 1: Log in to cPanel Step 2: Under Domains choose Domains. Step 3: Fill in the new domain name under Create an Addon Domain. The Subdomain and Document Root ...
    • How to add a new domain in Enhance Control Panel?

      Instructions to add an addon domain in the Enhance Control Panel Here is a step-by-step guide Step 1: Log in to your account and select the website that you would like to add your new domain too. Step 2: Click on the Domains option, and then click on ...
    • How to change the DirectoryIndex while using cPanel?

      The article describes the steps to change the DirectoryIndex while using the cPanel control panel. The Directory Index is an .htaccess code that specifies the default page for your domain name. The .htaccess file is recursive - if you place it in ...
    • How to manually install WordPress in Enhance Control Panel?

      This article will guide you through the steps to install WordPress manually in the Enhance Control Panel. Follow the steps below, 1. Create a domain from the domains section in your control panel as shown below. Click on the advanced option and enter ...