Cloud Service >> Knowledgebase >> cPanel >> How to Change the Document Root of Addon Domain or Subdomain in cPanel
submit query

Cut Hosting Costs! Submit Query Today!

How to Change the Document Root of Addon Domain or Subdomain in cPanel

Converting the report root of an addon area or subdomain in cPanel is an honest technique. Here's a step-by-step guide:

1. Log in to cPanel

  • Access your cPanel account with the aid of logging in with your credentials.

2. Navigate to the 'Domains' Section

  • In the cPanel dashboard, scroll right down to the Domains phase.

  • Click on Addon Domains in case you're converting the report root for an addon area, or Subdomains if it's for a subdomain.

3. Locate the Domain or Subdomain

  • In the list of addon domains or subdomains, find the only for which you want to trade the record root.

4. Change the Document Root

  • For Addon Domains:

  • Next to the area call, you'll see the current root direction of the report.

  • Click on the pencil/edit icon next to the file root course.

  • A text container will seem to permit you to enter the brand-new record root.

  • Enter the desired route (relative to your home directory), then click on Save.

  • For Subdomains:

  • The method is similar. Find the subdomain, click the pencil/edit icon after the record root direction, input the brand new route, and store.

5. Verify the Change

  • Once you’ve saved the brand new file root, cPanel will update the configuration.

  • You can confirm the change by navigating to the domain or subdomain to your browser, ensuring that it masses the documents from the new record root.

Notes:

  • Backup your files: Before making changes, returning your site files is a good idea.

  • Permissions: Ensure that the brand new record root directory has the suitable permissions and possession settings.

  • .Htaccess: If you're using an .Htaccess file, make certain it’s efficaciously configured inside the new report root.

This ought to help you change the record root for an addon area or subdomain in cPanel.

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!