You can change the Document Root for an additional domain or subdomain to point to a specific directory on your server. This allows you to host different content or applications from different folders while using a single cPanel account.
Before you begin
You will need:
A cPanel account with an existing additional domain or subdomain.
The specific directory path where the website content is located.
Changing the Document Root
Log in to your cPanel account.
Under the Domains section, select Domains.
Locate the domain or subdomain you wish to modify in the list.
Click the Manage button next to that domain.
Locate the Document Root field for that specific domain.
Enter the new directory path in the field.
Click Update.
Confirm the result
The page will refresh, and the Document Root field will display the new path.
Your website will now load content from the updated directory.
Limitations
Changing the Document Root only affects the path the web server uses to serve files for that specific domain. It does not move your files or change the permissions of the directory. If you move your files to a new folder, you must update the Document Root to match that new path.
