cPanel
How to set subdomain root folder using cPanel for Bluehost, Hostgator ...
When creating a new subdomain using cPanel a folder is automatically created using the subomain name. For example if I create the subdomain 'shop.mydomain.com', a folder called 'shop' is created in the root of this domain. Sometimes this automatically assigned folder name is not acceptable. Maybe it conflicts with other folders.
However, when using the X3 theme of cPanel it is possible to define the folder name when creating a subdomain. To determine if your version of cPanel is using the X3 theme, login to cPanel and check the URL in your browser. If you see 'x3' in the URL you are using the X3 theme.
If your hosting company has not enabled the X3 cPanel theme, ask them to do so. Bluehost use this theme as standard, and Hostgator will enable it if your submit a support ticket.
Once you have the X3 theme enabled, create a new subdomain and you will see the following form:
In the 'Document Root' control you can specificy the folder to use for the subdomain. It is not possible to set the folder of an already created subdomain. However, it is easy to delete a subdomain, and then re-create it, specify the new folder to use.