How to Change the Folder Or Directory Of An Addon Domain In cPanel Print

  • Addon Domain, Folder, Directory, cPanel
  • 261

Occasionally, you may want the content to be in a different folder or directory than the default, or you may already have the content uploaded to a certain folder on your account. In that scenario, you would enter the relevant folder in your domain's Document Root column.

Please be aware that you cannot use certain folders or directories as the document root directory for your addon domain(s). These folders and directories are listed below;

  • The account’s Home directory itself (cannot/)
  • Directories outside of the account’s home directory (./ and ../)
  • .cpanel
  • .trash
  • etc
  • mail
  • ssl
  • tmp
  • logs
  • .cphorde
  • spamassassin
  • .htpasswds
  • var
  • cgi-bin
  • ssh
  • perl5

The steps in changing the folder or directory of an addon domain in cPanel are explained below:

STEP 1: Log in to cPanel.

There are three methods to log into your cPanel.

  • Method 1: Log in to your cPanel directly.
  • Method 2: Log in to your cPanel through your Customer Portal.

Through your Customer Portal;             

  • Log in to your Customer Portal.
  • Click on "Log in to cPanel".

Login-to-cPanel

  • Method 3: Log in using the details sent to your Email.

Through your Email;

  • When you purchase a hosting plan, your cPanel login details (including username, password, and cPanel URL) are automatically sent to your registered email address. Simply check your inbox (or spam folder), locate the email, and use the provided credentials to access your cPanel.

Email - Login to cPanel

STEP 2: In the Domains section, click on Domains.

cPanel - Domains Section - Domains

STEP 3: Locate the Document Root of the Domain Directory you want to change and click ‘Manage’.

Document Root - Domain Directory - Manage

STEP 4: In the field, input the New Directory where you want the files for the domain to exist.

STEP 5: Click on ‘Update’.

New Directory - Update


Was this answer helpful?

« Back