Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to move addon domain folder to another folder?

Discussion in 'Bind/DNS/Nameserver' started by RhysPrice, May 20, 2015.

  1. RhysPrice

    RhysPrice Registered

    Joined:
    May 20, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Birmingham
    cPanel Access Level:
    Website Owner
    Hi guys, I have created a proxy site, and all the sites that are proxied have a few separate domains, that I have made add on domains in cPanel, e.g.:

    ThePirateBay has 4 domains, that I have made add on domains to my main site domain. In the public_html there is a folder for each add on domain. I plan to create a lot more proxies so there is going to be a lot of folders.

    Is it possible to move the add on domains into a separate folder?

    I tried it, but when I visit the add on domain, it has the 404 page.
     
  2. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Personally, I use the following folder structure...

    1. /home/$username/ (root)
    2. /home/$username/public_html/ (Main Domain)
    3. /home/$username/addon-domans/ (Holds addon domain folders)
    4. /home/$username/subdomains/ (Holds subdomain folders)

    I personally think this is a cleaner way to organise your cPanel accounts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can update the document root for addon domain names by browsing to "cPanel - Addon Domains", browsing to the list of addon domain names, and changing the "Document Root" entry.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice