HiBlog Hosting and cPanel

How to Change a Domain in cPanel Without Losing the Site

  • Mina SeyfollahiAuthor
  • Last updated
  • 2 minutesReading time
  • 965Views
  • Mina Seyfollahi
  • Last updated:
  • 2 min read
  • 965 views
How to Change a Domain in cPanel Without Losing the Site

Changing the primary domain of a cPanel account and moving the public website to a new address are separate operations. You can connect a new address to a site without renaming the account’s primary domain. Which approach you need depends on DNS, email, and the host’s setup.

Take backups of files, databases, and DNS records. List the mailboxes, subdomains, SSL certificates, and application URLs that reference the old name. This shows which pieces need to move and which can stay where they are.

Change the account’s primary domain

Your provider or an administrator with appropriate WHM access normally makes this change. Ask what will happen to DNS zones, mailboxes, document roots, and any account aliases. Confirm how to reverse the change if a service stops working. WHM account modification.

Move the public site

Connect and verify the new domain, set up its certificate, and test the site before sending visitors there. Update the application’s primary URL. For WordPress, use a serialization-aware search and replace with a dry run and backup when changing references. WP-CLI search-replace.

Keep the old domain and its certificate active to serve redirects. Map old URLs to their closest new equivalents with 301 redirects. Verify email separately, then update internal links, canonicals, sitemaps, and search tools. Google’s domain move guide.

Share Post

hidata.org/en/blog/changing-domain-cpanel/
In Social Media

Add Comment

Related Articles