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 primary domain root in cPanel / WHM?
Change Primary Domain Document Root in cPanel/WHM 1 Log in to your cPanel account. 2 Scroll down to the Files section. 3 Click the ‘File Manager’ icon. 4 Check the View Hidden Files checkbox. 5 You are working with your primary domain, so select the ‘WebRoot (public_html/www)’ option. 6 Right click the ‘.htaccess’ and choose Code Editor.
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.
How to find the document root of your website?
How to find your primary domain’s document root in cPanel 1 To to begin, go ahead and log into your cPanel. 2 Okay, once you’ve logged into cPanel. Go to the File Manager. More
How to create a subdomain for a document in cPanel?
To create a subdomain, perform the following steps: 1 Enter the desired prefix in the Subdomain text box. 2 Select the desired main domain from the menu. 3 Enter the home directory for the subdomain in the Document Root text box. Note: The house icon () represents the cPanel account’s home directory. 4 Click Create.
How to change the document root for a subdomain?
To modify the document root for a subdomain, perform the following steps: 1 Click the notepad icon that corresponds to the subdomain that you want to manage. 2 Enter the new file path that you want to use as the document root in the available text box. Note: You cannot use the… 3 Click Change. More
Where to find root folders in cPanel hosting Namecheap?
The Document Root column shows root folders for each of your domains. Click on the Home icon to access the File Manager interface for that domain. The Redirects To option shows the redirects for all your domains. If the domain redirects to a different domain, you will be able to check the destination in this column.
https://www.youtube.com/watch?v=EKfxQIUVMIE