This article is for cPanel/WHM VPS and Dedicated Server customers only.
If you're on a Personal, Business, Premium or Reseller hosting plan, log into your Client Area and submit a support ticket so we can make this change for you.
Before you start: Changing the primary domain of a cPanel account has several effects to be aware of.
- This will delete any DNS records for the original domain, and set any DNS records for the new domain back to the default values. If you have any non-default DNS records in place, they will need to be re-added after the change. We'd recommend navigating to cPanel > Zone Editor and taking note of the records.
- By default, email accounts for theold domain change to reflect the new domain. Changing the primary domain from yourdomain.net to mydomain.com will change admin@yourdomain.net to admin@mydomain.com. You will need to update the Email Address and Username (for both incoming and outgoing server) on any devices that email account is set up on.
- After the change, images/links on your website may not load fully at first. You will need to contact your developer to update any hard links in your website to reference the new domain.
- Any SSL Certificates that reference the primary domain will need to be reissued for the new domain.
Step 1 - Log into WHM and Select the List Accounts option.
Step 2 - Click on the + icon next to the domain you wish to change, then click on the Modify Account button.
Step 3 - Update the Primary Domain field to the new domain.
We highly recommend that you do not change the cPanel username. As the username is tied to the database name, you may get database errors relating to site code or configuration.
Step 4 - Scroll down to the bottom of the screen and click Modify.
The primary domain will have been changed. You will now need to update any hard links inside your CMS to reflect the new domain.
Step 5 - (Optional) As a temporary step while you update links on your CMS, you may wish to add your old domain as an Alias onto the cPanel account, as seen here. This will have the benefit of having the old domain load as before until the links are updated.