# How to Change the Domain of an Existing WordPress Site

https://ferkesh.net/uk/baza-znan/stattia/wordpress-change-site-domain

![Diagram linking Record original URLs, Rehearse on staging, Update data carefully and Test and redirect.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-07.svg#wordpress-change-site-domain)

Changing a WordPress domain can affect stored links, themes, login cookies and integrations. A DNS change alone points a hostname at a server. It does not update the site’s own address or external callback configuration.

## Rehearse the cutover

1. Record the current home and site URLs, important redirects, resources and integration callbacks. Take a restorable files and database backup and account for production writes after the snapshot.
2. Test the new domain on a protected copy. Use a supported WordPress-aware search and replace process for stored URLs, with a dry run and a reviewed target scope. Avoid raw replacement that can corrupt serialized data.
3. Verify home, a deep page, media, login and approved forms over HTTPS. Plan explicit redirects from legacy paths and update callbacks through their providers.

Keep the old hostname and certificate available during the agreed transition. Treat production checkout, email and provisioning as separate controlled integration tests.

After changing WordPress URLs, [test sign-in sessions after a domain change](https://ferkesh.net/knowledgebase/article/migration-session-cookie-domain-change) with a clean browser and a test account to verify cookie scope and redirects.

## Related guides

- [WordPress Migration Checklist for an Existing Site](https://ferkesh.net/knowledgebase/article/wordpress-migration-checklist)
- [How to Preserve WordPress Images and Uploads During Migration](https://ferkesh.net/knowledgebase/article/wordpress-migrate-uploaded-media)
- [How to Separate Development, Staging and Production](https://ferkesh.net/knowledgebase/article/development-staging-production-workflow)
- [WordPress category](https://ferkesh.net/knowledgebase/category/wordpress)

## Official references

- [WordPress migration handbook](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)
- [Google Search guidance on redirects](https://developers.google.com/search/docs/crawling-indexing/301-redirects)

Ferkesh Hosting. Last reviewed November 26, 2026.
