You have the ability to change the primary domain name on your account. You must have already registered the domain name that you will be switching your account to. If you haven’t already registered the domain name, domain registrations through InMotion Hosting are $15.99 per domain per year.
NOTE: Please note that the cPanel software was not designed for the main domain name to be easily switched around. The domain name can be changed, but the files that go along with it are not moved. What does this mean? It means that your hosting account’s original primary domain (your previous main domain) has website files that either need to be moved or removed from the current location which is typically known as the document root. It also means that when you have your main domain changed, that the files that go along with it are not moved for you. The instructions for changing the primary domain are found below. For instructions on moving/removing your primary domain files, go to How to Move your Primary Domain Files.
What is affected when my domain is changed
Before we proceed with instructions on how to have your main domain changed, it is important that you understand what is affected by the change. The following items are affected when you change your primary domain: email, website files, subdomains, and your search engine rank.
If you are using a content management system or other website software (e.g. WordPress) Please be aware that simply changing the main domain may only be the start of configurations you need to change. Please make sure that you double-check your software’s documentation on changing the domain name.
All of the email accounts created for domainA.com will turn into domainB.com accounts. [email protected] will now be [email protected]. If you still needed [email protected] then you will need to add domainA.com to your cPanel again as either a parked or addon domain name and recreate the email account.
Important! This is not always the case. If you have a parked domain with emails that have the same username as the main domain and you change your main domain to that parked domain, your emails may not change.
If domainB.com was an addon domain name and all of the files were located in public_html/domainB, you will need to reupload the files back to public_html.
All of your subdomains.domainA.com will turn into subdomains.domainB.com. For example, sales.domainA.com will now be sales.domainB.com. All subdomain names will need to be recreated if still needed.
The previous main domain name on the account will be removed. If you still needed that previous main domain, you will need to log into your cPanel and add it as either a parked or addon domain name. Once the domain name has been changed, you will log into your cPanel via https://domainB.com/cpanel instead of https://domainA.com/cpanel.
Search Engine Rank
If you are changing your website’s domain name, keep in mind that this could affect your rank in search engines. Instead, Google recommends that you set up a 301 redirect, which lets search engines know the website is permanently moving.
Steps to change your primary domain for Shared accounts
If you have a Shared account, you can change the main domain name on your account through AMP:
- Log into AMP.
- Click the Change Primary Domain icon.
- The following page will explain everything that will be affected. You can continue at the bottom if you agree to the terms. Any current addon domains will be listed in the dropdown box. Select the addon domain you’d like to change your primary domain to, or choose “Enter Domain Name“ to type in a domain that’s not listed in the menu.
- Click “Change Primary Domain” once you’re done.
- You will see a confirmation in your AMP panel like “Your primary domain has been changed to your-new-domain.com“.
- You can then log into your cPanel to see the new domain in your cPanel stats.
- You will also receive an email at your email account on file with a confirmation of the Primary Domain change.
Modifying domains on VPS and Dedicated servers
If you are on a VPS or Dedicated server, you can modify your cPanel accounts. To learn how to modify your own cPanel accounts in WHM , please see the tutorial on How to modify a cPanel account within WHM.