Results 1 to 4 of 4

Thread: switch main domain and parked domain in account

  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    77

    Default switch main domain and parked domain in account

    Hi.

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

    in short, when the customer logs into his account, he should see domainB.com 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.

    thanks
    Last edited by bangsters; 11-09-2009 at 11:13 AM.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by bangsters View Post
    Hi.

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

    in short, when the customer logs into his account, he should see domainB.com 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.

    thanks
    One solution would be to:
    1. Remove domainB.com as a parked domain
    2. Go to WHM, modify this cPanel account
    3. In the domain field, change domainA.com to domainB.com
    4. Click "Save" and wait for the process to complete
    5. Add domainA.com as a parked domain

  3. #3
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    1,006
    cPanel/WHM Access Level

    Root Administrator

    Default

    I wanted to give you some real world experience, when I did this exact same thing: Switch a Parked Domain (DomainB.com) with the main domain (DomainA.com):

    The customer had email accounts with both DomainA.com and DomainB.com, and also had some email forwarders for only DomainA.com.

    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 DomainB.com from being a parked domain.

    3) In WHM, I modified the account by changing the domain from DomainA.com to DomainB.com.

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

    5) In CPanel, I went into Add-on Domains and added DomainA.com 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 DomainA.com -- when you Park, you do not get separate stats)

    6) In cPanel, I went into Redirects, and redirected DomainA.com to DomainB.com, "with and without www" and "wildcard" both enabled. Now, if you go to DomainA.com, it redirects to http://www.DomainB.com/somepage.htm. Perfect!

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

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

    - Scott
    Last edited by sneader; 03-08-2010 at 03:54 PM.

  4. #4
    Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    446

    Default

    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.

Similar Threads

  1. Switch domain and parked domain
    By dyrer in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 05-29-2011, 08:21 AM
  2. Main domain used as a parked domain on another account
    By Svintoo in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 12-01-2010, 04:55 AM
  3. Parked domain show up main domain on URL Bar
    By Jorge in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-25-2006, 01:02 PM
  4. subdomain on parked domain leads to main domain?...
    By Devil Inside in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-17-2004, 10:47 AM
  5. swap / switch a hosted domain with a domain parked over it?
    By spaceman in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-03-2004, 04:55 AM