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
-
Open your browser and go to:
-
Log in with your root username and password.
Step 2 – Search for “Modify an Account”
-
In the left-hand search bar, type Modify an Account.
-
Click on Modify an Account from the results.
Step 3 – Select the Account
-
A list of all cPanel accounts will appear.
-
Find the account you want to update.
-
Click the + (or select the account) and then click Modify.
Step 4 – Change the Primary Domain
-
In the account settings, look for the field Primary Domain.
-
Replace the old domain with the new one (e.g., change
oldexample.com→newexample.com). -
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.