How to move addon domain folder to another folder?

RhysPrice

Registered
May 20, 2015
1
0
1
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.
 

LostNerd

Well-Known Member
Mar 12, 2014
258
12
18
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.