The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

switch main domain and parked domain in account

Discussion in 'General Discussion' started by bangsters, Nov 9, 2009.

  1. bangsters

    bangsters Well-Known Member

    Jun 28, 2004
    Likes Received:
    Trophy Points:

    One client has as main domain, and as a parked domain. Is it possible to switch the two, making the main account and the parked domain in cpanel? the data of should show up in

    in short, when the customer logs into his account, he should see and not domainA.

    I can go to httpd.conf and manually change the virualhost to reflect domainB. But I'm not sure in whm end what to do.

    #1 bangsters, Nov 9, 2009
    Last edited: Nov 9, 2009
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    One solution would be to:
    1. Remove as a parked domain
    2. Go to WHM, modify this cPanel account
    3. In the domain field, change to
    4. Click "Save" and wait for the process to complete
    5. Add as a parked domain
  3. sneader

    sneader Well-Known Member

    Aug 21, 2003
    Likes Received:
    Trophy Points:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I wanted to give you some real world experience, when I did this exact same thing: Switch a Parked Domain ( with the main domain (

    The customer had email accounts with both and, and also had some email forwarders for only

    Here are the steps I took, and what resulted:

    1) In cPanel, I documented the email accounts and forwarders (simple copy and paste to a text file)

    2) In cPanel, I clicked on Parked Domains and removed from being a parked domain.

    3) In WHM, I modified the account by changing the domain from to

    4) In cPanel, I noticed that all of the email accounts (both for and are still intact. However, all of the email forwarders were changed to!

    5) In CPanel, I went into Add-on Domains and added as an Add-on domain (we decided we wanted it to be an Add-on and not Parked, so that we can track statistics of the usage of -- when you Park, you do not get separate stats)

    6) In cPanel, I went into Redirects, and redirected to, "with and without www" and "wildcard" both enabled. Now, if you go to, it redirects to Perfect!

    7) In cPanel, I had to delete the existing forwarders, since they were now for the wrong domain (, and then recreate them with the correct domain ( Thankfully, all email boxes are all OK!

    So, that is my experience, your mileage may vary. I hope this helps.

    - Scott
    #3 sneader, Mar 4, 2010
    Last edited: Mar 8, 2010
  4. Stefaans

    Stefaans Well-Known Member

    Mar 5, 2002
    Likes Received:
    Trophy Points:
    Vancouver, Canada
    Thank you Scott. I found your summary very helpful in guiding my own testing. My experience in ver 11.25 was the same as yours.

Share This Page