How to find and change the root folder of a subdomain or addon domain

Please do not do this unless you are comfortable making these sorts of changes. This change should only be made by an experienced web developer as, if incorrectly used, it can easily break your site and make it inaccessible.

In cPanel

Subdomains
Step 1 - Log into cPanel and click on the Subdomains icon.

c80b6728d796403859eabe3e28b643205b0be592?t=cbd9a50f2670ce3a44fa3ea11a34586a


Step 2 - Click on the pen icon at the edge of the document root.


rootfolderpic05.png


Step 3 - You will see this pop-up box. Edit the Document Root field and hit the Change button.

rootfolderpic06.png


Addon Domains
Step 1 - Log into cPanel and click on the Addon Domains icon.

rootfolderpic07.png


Step 2 - Click on the pen icon at the edge of the document root.

rootfolderpic08.png


Step 3 - You will see this pop-up box. Edit the Document Root field and hit the Change button.

rootfolderpic06.png

In Plesk
Step 1 - Log into Plesk and locate the root folder for an addon or subdomain by clicking on the Hosting Settings option within the Plesk card for the domain.

5ea29775b08b98cecfc9fa546daaab5b498bc1d6?t=e5873709c55c0df805090cae2b673bc1


Step 2 - In this example, the document root is located under the home directory in the folder named 'yourdomain.net.au'.
Change the document root by editing the folder name and clicking on Apply.

0e3acb65f2602160f5f3571605c74a57e571d021?t=768a87acec0bf2591328757b90e65ec7



Did you find this article useful?