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.

How to change primary domain for a site...

Discussion in 'General Discussion' started by Ishware, Sep 29, 2009.

  1. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Howdy. :)

    I have a website that is a centre of some politically-charged satire/parody. Some might have heard the meme, but I'd prefer not to discuss the particulars at this time...

    The problem is that the first domain I registered may be shut down - there's a WIPO dispute that my lawyer is confident we can win, but for various reasons, I may decide to shut that domain off.

    I have subsequently parked two domains on top of it for the site...

    My question is: What's the easiest way to change the primary domain to one of the parked ones? I have a forum running - that's the main problem. I don't want to lose the forum and its valuable posts...

    EDIT: Just to clarify, this is on my dedicated server, i.e. I have root. :)
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If this was my server, I would unpark one of the domains. Then I would go to WHM and edit this account, changing the domain for the account to the domain I just unparked from the account. Once I finished doing that, I would park the former primary domain on the account.

    Basically, swap one of the parked domains to become the primary domain for that account, then park the old primary domain on that account until I no longer wanted to use that parked domain.

    If your website gets much traffic, I recommend announcing that you will be doing maintenance as your site may become temporarily unavailable while you are doing this swap.
     
  3. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Holy cow! I never noticed that you could edit the domain before... that's... brilliant.

    Wow. I feel ashamed for asking such a simple question.

    Thank you very much! :D
     
  4. dstlink

    dstlink Member

    Joined:
    Apr 23, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    The Woodlands, TX
    What does that do to any e-mail accounts that you had on the first domain? I'm looking to do something like that, my customer wants to move over to a new domain.

    I'm debating between creating new space for him or just unparking the new domain, changing it in WHM, and then parking the old domain back on the site. The issue is he has several e-mail accounts and I don't know what happens to them when I change the domain name? Do they become accounts with the new domain or do they stay with the old domain? Technically the old domain would not exist for a few minutes on the account during the change. I just don't want the accounts to be removed.

    If they swap over to the new account the user would still have to update their login to reflect the new username, but at least the passwords would probably stay the same. I don't know if he even wants the same number of accounts with the new domain, but would assume some of the key folks will end up with the same e-mail address on the new domain.
     
  5. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Once you swap the domain name, the email accounts will have the new domain name with all the same passwords. If your client want to have the email accounts with the old domain name, Park the old domain on the new one and create the email accounts on the old domain name.
     
Loading...

Share This Page