Changing root directory for domain

The directory of the main domain is the place from which the files are read, which displays the page under the given domain. In the case of cPanel, for additional domains as well as for subdomains, we can change the root directory after the domain has been added. Only for the hosting account main domain we cannot do this, and it is permanently assigned to the public_html directory.

Changing the root directory for addon domain

  1. Log in to Your cPanel account.
  2. In the Domains section, select "Additional domains".
    Changing root directory for domain - step 1
  3. In the secion Modify Addon Domain, click on "pencil" icon.
    Changing root directory for domain - step 2
  4. In the window that pops up, let's give the new path of the domain root directory.
    Changing root directory for domain - step 3
  5. Click "Change" to approve the changes

Changing the root directory for subdomain

  1. Log in to Your cPanel account.
  2. In the Domains section, choose the "Subdomains" option.
    Changing root directory for subdomain - step 1
  3. In the section Modify a Subdomain, click on "pencil" icon.
    Changing root directory for subdomain - step 2
  4. In the window that pops up, let's give the new path of the domain root directory.
    Changing root directory for subdomain - step 3
  5. Click "Change" to approve the changes
  • domena, domain, hosting, directory, katalog
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What DNS server addresses do we have?

At Thecamels we have two DNS servers that work in a cluster to ensure continuous service in case...

Why do I get 500 - Internal Server Error?

When you upload  website to the server and then open it, error "500 - Internal Server Error" can...

How do I fix a session cleaning error in PrestaShop?

In order to fix the problem, please contact us via Client Area. Problem occurs due to incorrect...

How to edit host file in system

Hosts file role, is to translate friendly domain names into their numerical equivalents, i.e. IP...

Why my hosting account has been blocked?

An account may be suspended for several reasons, which are listed below:  No payment for...