Document Root Changes

Updating the document root folder for a domain name changes the actual location a site's files are stored. Your primary domain uses the public_html folder by default.
joudiSoft does not support changing the document root for your main (primary) domain, as this causes multiple severe issues. The document root can only be changed on addon domains and subdomains.

Change Document Root for an Addon or Subdomain

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

Note: joudiSoft always recommends creating a full backup before making any major changes to your site.

To change the document root folder:

  1. Log into cPanel.
  2. In the "Domains" section, click the Addon Domains or Subdomains icon, depending on which you'd like to modify.
  3. In the Modify a Domain section at the bottom of the page, click the icon next to the current document root for the domain you wish to modify.
  4. In the popup window, enter the new document root and click Change.

Alternatives to Changing the Document Root for the Primary Domain

If you still want your primary domain to use a root folder other than public_html, you have two options:

  • Change the primary domain name on your account, then add the old primary domain as an addon domain. This way, you can pick the root folder you want for the primary domain/new addon domain. (The new primary domain will now point to public_html.)
  • Use mod_rewrite to automatically redirect your website visitors to a new default directory. The new folder name will appear in the URL (i.e.
It is highly recommended that you do NOT change your new document root to point to your home directory.

  • 0 Users Found This Useful
Was this answer helpful?

Also Read

How to Disable Anonymous FTP

Anonymous FTP is disabled by default for the security of your account. We do not recommend...

How to Generate/Download a Full Backup

All of our accounts are able to create and keep a full backup of their hosting package. This is...

Backup File Types - cPanel

When you have a backup file, you will need to know what type of backup it is so you can know what...

public_html folder

The public_htmlfolder is the web root for your primary domain name. This means that public_html...

How to Set Up an Anonymous FTP Message

An anonymous FTP message is displayed when an anonymous FTP user connects to an FTP account. This...