How do I change primary domain in shared hosting?

How do I change primary domain in shared hosting?

Under Web Hosting, next to the Linux Hosting account you want to use, click Manage. In the account Dashboard, in the Settings section, next to Primary Domain, click Manage. Select or enter the domain you want to use, and then click Change Domain.

How do I change a document root in cPanel?

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.

How do I change primary domain inmotion?

Shared Hosting Accounts

  1. Log into AMP.
  2. Click the Change Primary Domain icon.
  3. The following page will explain everything that will be affected.
  4. Click “Change Primary Domain” once you’re done.
  5. You will see a confirmation in your AMP panel like “Your primary domain has been changed to your-new-domain.com“.

How do I change primary domain document root in cPanel WHM?

How to Change Document Root of Primary Domain in WHM/cPanel

  1. Step 1 – Update Document Root in cPanel. Use SSH to get shell access for your server as root account, using your favorite ssh client.
  2. Step 2 – Changes Document Root for SSL.
  3. Step 3 – Rebuild and Restart Apache.

How to change the root of a domain in cPanel?

But cPanel offers a feature where website owners can change the default document root for addon domain during creation or after creating it from the cPanel. To change the root directory of Addon domain, in the cPanel -> “Domains” section, click the Addon Domain and update the new document root in the popup window. 2. Creating symlinks

Where is the document root located in cPanel?

The document root is the folder where the website files for a domain name are stored. As you can host multiple domain names in cPanel (addon domains and subdomains), you need to have a unique folder for each domain.

How to change the document root of the primary domain?

There is an existing feature request for this here: Although cPanel does not currently offer a feature to allow this functionality, you may use the following procedure as a workaround to change the document root for your primary domain.

Where is the primary domain located in cPanel?

The sub-directories inside the public_html directory is occupied by the addon domains. The primary domain can also be setup to use a sub-directory inside public_html directory instead of public_html itself. Follow the below steps to change the document root of your primary domain in cPanel account.