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.

Primary domain name removal

Discussion in 'General Discussion' started by fdnven, Jan 6, 2015.

  1. fdnven

    fdnven Well-Known Member

    Feb 14, 2006
    Likes Received:
    Trophy Points:

    We will not be renewing the domain name that is listed under our account in WHM. We have a few addon domains we use in the account. If we remove the domain name in the account in WHM and replace with one of the add on domains. Will the add one domains work as they did prior to removing the account_doman_name and replacing with ? Just replacing the domain name in WHM would help as we would not need to set up the files in the root of the account and just leave all the files in the addon domain folder created by the system.

    account_domain_name user addondomain1.account_domain_name (Unpark)
    account_domain_name user addondomain2.account_domain_name (Unpark)

  2. sarath8372

    sarath8372 Active Member

    Jan 6, 2015
    Likes Received:
    Trophy Points:
    Kochi, India
    cPanel Access Level:
    Root Administrator
    Hello Frank,

    When you replace main domain with addon domain, document root of that addon domain will get changed to public_html (home/user_name/public_html). So you will need to copy website files to public_html folder. Since there will be files of old main domain under public_html there is every chance of files getting mixed up.

    So I would recommend leaving the main domain as it is. Expiration of the main domain won't affect anything on the account. You can access cPanel, webmail, etc using addon domains like addondomain.tld/cpanel and addondomain.tld/webmail

    If you want to replace current main domain with one of the addon domains anyway, follow the below steps :

    1) Remove addon domain (domain that you want to make main domain) from Addon domains in cPanel.
    2) Change main domain of the account from WHM : Home >> Account Functions >> Modify Account.
    3) Copy files of the addon domain to public_html folder. To avoid any confusion/mixing up, I would recommend removing website files of old main domain from public_html folder.

    Note : Take a full account backup before moving/copying website files.

    I repeat, if you don't want to mess up websites, just leave the main domain as it is :)
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Also, keep in mind that email accounts are not deleted, but rather they are updated with the new domain name. For instance, if you have test1@domain1 created, then it becomes test1@domain2 after you make the modification. You will have to create new email accounts for the addon domain name and copy over the email if you prefer to keep them the same.

    Thank you.

Share This Page