Change Document Root for an Addon or Sub-domain

By default, addon domains and subdomains use folders beneath the public_html folder – thus, the root directory for an addon domain named somedomain.com would by default be public_html/somedomain.com.

To change the document root folder:

  1. Log in to cPanel.
  2. In the Domains section, click the Addon Domains or Subdomains icon, depending on which you’d like to modify. 
  3. Locate the addon domain (or subdomain) you wish to modify.
  4. Click the pencil icon next to the current document root for the domain you wish to modify.

    Example for Addon Domain:Modify Document Root for  Addon Domain

    Example for Subdomain:

    Modify Document Root for Subdomain

  5. In the pop-up window, enter the new document root and click Change.Change Document root pop-up

Was this article helpful?

Related Articles