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!

Switch Primary Domain to existing addon/parked domain

Discussion in 'General Discussion' started by buyrihn, Mar 17, 2014.

  1. buyrihn

    buyrihn Registered

    Jul 14, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    My main domain is, so every time I add a new site, it can of course be found at as well as I have about 6-7 websites that resolve to (website name here) One of those website ( and, I would like to have become the main website. Essentially, I need all of my sites to be subdirectories of (so would become, as well as all the other ones).

    What exactly do I need to do? I read something here ( said

    "If the subdomain does not already exist on the machine, then you can use WHM > Account Functions > Modify an Account to change the main domain name to any domain whether it is a real domain or not, whether it's a subdomain or not. Again, the only caveat is that the domain or subdomain cannot already exist on the machine (in httpd.conf for Apache nor in /var/named as a DNS zone file)."

    Since it DOES exist as a subdomain and addon/parked domain, what steps do I need to do to ensure that I don't lose any data in the migration? I don't host any emails, but I am concerned about databases and files.
  2. vanessa

    vanessa Well-Known Member

    Sep 26, 2006
    Likes Received:
    Trophy Points:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Remove the domain as a parked/addon domain, and go to whm -> modify an account, and change the primary domain. Doing this will not nuke and db's or files, and will update the corresponding subdomains for existing addon/parked domains.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    There are no native tools that will automatically convert an addon domain name to it's own account. However, the following forum thread includes user-submitted information on to complete this manually:

    Moving addon domain name to it's own account

    Also, feel free to add your input to the existing feature request:

    Tool to migrate addon domain name to it's own account

    Note that in this case, since you are keeping it on the same account, you can just copy over the website data to the public_html directory via FTP or File Manager.

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

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