How to Change the Primary Domain in WHM

Sometimes, a client may want to replace their existing domain with a new one but keep the same hosting account, files, and settings. In WHM, you can do this by modifying the account’s primary domain.

Step 1 – Log in to WHM

  1. Open your browser and go to:

    https://your-server-ip:2087
  2. Log in with your root username and password.

Step 2 – Search for “Modify an Account”

  1. In the left-hand search bar, type Modify an Account.

  2. Click on Modify an Account from the results.

Step 3 – Select the Account

  1. A list of all cPanel accounts will appear.

  2. Find the account you want to update.

  3. Click the + (or select the account) and then click Modify.

Step 4 – Change the Primary Domain

  1. In the account settings, look for the field Primary Domain.

  2. Replace the old domain with the new one (e.g., change oldexample.comnewexample.com).

  3. Scroll down and click Save.

Step 5 – Verify Changes

  • Log in to the client’s cPanel to confirm the new domain is showing.

  • The website files will remain in the same location (usually /public_html).
  • Update DNS records for the new domain to point to your server’s IP.

Was this article helpful?

Related Articles