How to change the primary domain name on a cPanel account

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.

  • cPanel, Domain Name
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is SSL and why do I need it?

Secure Sockets Layer (SSL) is a protocol, or set of rules, used to create a secure Internet...

How to use cPanel Site Publisher

  Site Publisher lets you quickly create a simple website, even if you've never created a...

How to setup DMARC records in cPANEL

In this tutorial, we will show you how to setup DMARC records in cPanel. This allows you to...