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 - and

The domain is the primary domain for your account and is hosted as an addon domain,

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

  • Remove from the addon slot from your cPanel -> Addon Domains.
  • Change the primary domain name for your account from to This can be done via your User Area -> My Accounts -> Manage Account -> Information and Settings -> Change Primary Domain.
  • Back up the website files for 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 to your addon slot from your cPanel -> Addon domains.
  • Copy/restore the website files for to the newly created addon folder.

Keep in mind that depending on the applications that power both websites, additional modifications to the applications' configuration may be required in order for them to work correctly from their new locations.

cPanel is easy to work with when you have the right host to support you. If you need a reliable partner to help you manage your website with cPanel, check out our cPanel hosting services!