Skip to main content

Changing Directories

Comments

7 comments

  • Infopro
    When adding a subdomain, you are able to modify the default path for it right from within your cPanel.
    0
  • wstar
    When creating the subdomain, the directory is set to the home directory then a subfolder. Ex. home/USERNAME/subdomain
    0
  • cPanelMichael
    Hello :) You can choose the document root of your preference when creating the subdomain. For instance, it can be in the account's home directory or within the public_html directory. Is it not working as intended when you do this? Thank you.
    0
  • wstar
    Thanks for the quick replies. When I create a subdomain I can attach and folder(s) to the end of the home directly. But I wanted to see if there was a way to make it different than the home directory. My end goal is to have this Main Site: home/USERNAME/site Development Site: home/USERNAME/dev I just don't want the development site to be home/USERNAME/site/dev
    0
  • cPanelMichael
    Could you attach a screenshot of what you see when attempting to modify the directory during the subdomain creation? Thank you.
    0
  • wstar
    Yeah I can when I get home. I think my first step is to change the home directory for the site? To home/USERNAME/site instead of the default home/USERNAME/ ?
    0
  • Infopro
    We would like to separate these like so Main Site: home/USERNAME/site Development Site: home/USERNAME/dev
    So, on the Create a Subdomain page, you'd do this: Subdomain: dev Domain: domain.com Document root: /dev You'll need to edit the auto filled details here. The docs should be of some use: Subdomains - cPanel Documentation
    0

Please sign in to leave a comment.