Note: This update to your primary domain name will also update any related subdomains and email accounts to the new name.
Shared and Reseller
You no longer need to ask HostGator to change the primary domain name associated with your account. You can make the change yourself in the HostGator billing tool.
A Pre-Change Checklist
Before you change the main domain on your account, here is a guide that will help ease the transition. Two common scenarios have been listed below.
In the following examples, primarydomain.com is your current domain and newdomain.com is the domain name you are changing it to.
Scenario A: primarydomain.com and newdomain.com are Different Sites
This example is for situations where primarydomain.com and newdomain.com have different content (i.e. are different websites).
- The first step is to create a Full Account Backup in the cPanel (this can take a few moments depending on the size of the account).
- Login into the cPanel and open the File Manager (or use FTP) and create a folder in the /public_html that is called primarydomain.com.
- Move all the files for the primarydomain.com website from the /public_html folder to the folder at public_html/primarydomain.com.
If you have added subdomains or addon domains to your account, make sure you leave those folders where they are. Moving subdomain and addon domain folders will cause those sites to stop working. In this step, only move the files and folders related to the primarydomain.com website.
- Once you have moved all the files for primarydomain.com from /public_html to the public_html/primarydomain.com folder you would then want to move or upload newdomain.com.
- If you had previously added newdomain.com as an addon domain, you would then want to move all the files from /public_html/newdomain.com to be in the /public_html directory.
Then go to Addon Domains and remove newdomain.com.
- If newdomain.com was not previously uploaded as an addon domain, then upload the files for newdomain.com into the /public_html folder instead. If you have a lot of files, FTP would be the best way to do this.
- If you had previously added newdomain.com as an addon domain, you would then want to move all the files from /public_html/newdomain.com to be in the /public_html directory.
- Then you can go through with the domain change
using the directions below.
- Re-add the primarydomain.com as an addon domain (if you still intend to use it).
Scenario B: newdomain.com will show the content previously on primarydomain.com
This example is for situations where you want the content from primarydomain.com to appear on newdomain.com. You would typically use this example when you are changing the domain of an existing website, and are phasing out the use of the old domain name.
- The first step is to create a Full Account Backup in the cPanel (this can take a few moments depending on the size of the account).
- Remove newdomain.com from addon domains or parked domains, if it is already there.
- Change the primary domain using the directions below
.
- Add primarydomain.com as a parked domain, if you want to continue using primarydomain.com.
- Optionally create a redirect from primarydomain.com to newdomain.com, if you want newdomain.com to show up in the address bar instead of primarydomain.com.
If you are phasing out use of the old primarydomain.com domain name, then setting up a redirect for awhile will help people find the new domain name.
Note: Steps 4 and 5 are optional. If you simply want primarydomain.com and newdomain.com to show the same content, changing your primary domain name is not necessary. You could create a parked domain with or without redirects and achieve the same effect.
Making the change
- Login to the HostGator billing tool, GatorBill.
- Go to 'Hosting Packages' and click 'View Hosting Packages'.
- Find the package you want to modify and click on 'Change My Domain'.
Note: This will only change the domain setup on the server, it will not register you a new domain.
Dedicated & VPS
Please email support@hostgator.com or create a ticket to support to change your hostname. There is no charge for this service.
Changing addon and subdomain names
You will not need HostGator's billing tool to change your subdomains, addon domains, and parked domains. You can do that directly in cPanel.
Ok, how do I change my addon domain name, but keep the content?
In this example, I will change books123456789.com to books4allofus.com
- Register your new domain name
- Login to your HostGator cPanel
- Click the Addon Domains icon
- Write down the "document root" for the old Addon domain [screenshot]
- Remove the Addon domain with the old name
- Create a new Addon domain with the new name, but use the old "document root" (which you wrote down) as the new "Document Root" value [screenshot]
- Now your site has all the same content, but a new URL (domain name address) [screenshot]
Important Notes
Continuing to Use the Previous Primary Domain Name
As mentioned in Step 6 of Scenario A in the Pre-Change Checklist, you would need to re-add the previous primary domain as an addon domain, if you want it to be a separate site.
Alternately, if you want the previous primary domain name, and the new primary domain name to show the same site, you can setup the old primary domain name as a parked domain instead. This will cause both domains to show the same content (specifically the content located in the /public_html folder).
Subdomains
When you change the primary domain on your account, the subdomain names will automatically update from sub.olddomain.com to sub.newdomain.com (for example).
If you want one or more of your subdomains to continue to use the previous primary domain name, you would need to re-add the subdomain, and specify the existing subdomain folder as the Document Root.
Email Accounts and Email Forwarders
When you change the primary domain on your account, the email addresses will automatically update from someone@olddomain.com to someone@newdomain.com (for example).
If you want to continue using the old primary domain name for emails, you will need to re-setup those email addresses either as Email Accounts or Email Forwarders.
Private Name Servers
Changing your primary domain on your account does not effect your existing private name servers. The private name servers with the previous domain name will keep on working (assuming that domain is still active).
Furthermore, changing your primary domain name does not automatically create new private name servers.
If you would like to setup private name servers using your new primary domain name, you would follow the same directions and use the same IP addresses you used for setting up your previous private name servers.
For more details on how to setup private name servers, please read the article on Private Name Servers Setup.
WHMCS
WHMCS must be updated to match any domain name changes. Please email sales@hostgator.com or create a Ticket to Sales so your WHMCS license can be updated.
(Reseller and dedicated server customers get a free license for WHMCS.)


