Skip to main content

Expert help please: Create Director for Rood Website

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! I think what you'd want to do is the change the document root for the main domain. That way you wou ld have the main domain here: /home/username/public_html/main_domain and the subdomain here: /home/username/public_html/sub_domain If that's what you're looking to do, the following article will help with that:
    0
  • MBX
    Hello: Firstly, my apologies, the title should read: Expert help please: Create Directory for Root Website :) And thanks for this. I'm a user of cPanel through my paid ISP, a very well know one - I may not be allowed mention it here, unsure, so not a licensee of cPanel. So the options available to me are only: cPanel / subdomain / then: - I have moved one subdomain into a new folder (creating and using file manager) and will move the rest in there too, as the main domain allows me no options, as attached. This was the only workaround I could manage. What I'm looking for is to create a new folder for the main domain - say called "prod" and to put all the domain code there so main domain redirects/uses this foldwe - as per image 2 Advice appreciated. Thank you. K
    0
  • cPRex Jurassic Moderator
    Thanks for that information. If you only have cPanel access you wouldn't be able to perform the document root customization as I mentioned. You'll be limited by what the host is willing to do, so you'd have to reach out to them to see if they are willing to make that change for you. If not, you'll need to stick with a more standard directory structure.
    0
  • MBX
    Hi @cPRex Thank you, understood and will progress that route. Your input is much appreciated. Regards k
    0
  • MBX
    + Please mark as answered and closed
    0
  • cPRex Jurassic Moderator
    You're very welcome - feel free to reach out to us at any time if you have other questions!
    0

Please sign in to leave a comment.