How to Switch my Primary Domain Name with my Addon Domain?

Let's say that you have one hosting account and two domain names used for two different websites - yourdomain1.com and yourdomain2.com.

The domain yourdomain1.com is the primary domain for your account and yourdomain2.com is hosted as an addon domain,

Here are the steps you should take in order to switch the two domains, i.e. make yourdomain2.com primary for your account and host yourdomain1.com as an addon domain:

 

  • Remove yourdomain2.com from the addon slot from your cPanel > Addon domains.
  • Change the primary domain name for your account from yourdomain1.com to yourdomain2.com. This can be done from your Help Desk > Domain name change.

  • Back up the website files for yourdomain1.com located in the public_html folder and then remove them or place them in another folder.
  • Move the files from the addon domain's folder to your public_html directory.
  • Add yourdomain1.com to your addon slot from your cPanel > Addon domains.
  • Copy/restore the website files for yourdomain1.com to the newly created addon folder.

 

Please note that depending on the applications you are using, additional modifications to the applications' configurations may be needed in order for them to work correctly from the new locations.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 2226