Changing your WordPress site's domain
Move WordPress to a new address without broken links.
- Back up the site first.
- Add the new domain to your hosting and point it there (see Hosting more than one website).
- In Settings → General, change both addresses to the new domain and save. You'll be logged out; log in at the new address.
- Replace the old domain inside your content with a plugin such as Better Search Replace: search
https://old-domain.com, replace withhttps://new-domain.com, across all tables. Run it as a dry run first. - Add a 301 redirect from the old domain to the new one so visitors and search rankings follow. See Redirecting a page or domain.