How to Move a WordPress Site to a New Domain
Move your WordPress site safely with backups, redirects, tests, and Google updates.
To move a WordPress site to a new domain, back up every site file and the database first. Set up the new domain, copy the site, update its address, and add permanent redirects from old URLs. Then test the new site and tell Google about the change. This order helps protect traffic and avoids common downtime.
Prepare before you move your WordPress site
Start by making a full backup of your WordPress site. Save the database, themes, plugins, uploads, and other site files. Keep one copy off your hosting account, such as on your computer or secure cloud storage. Check that you can access the backup before making changes.
Next, set up the new domain and hosting account. Point the domain’s DNS records to the new host, and install an SSL certificate so the site loads over HTTPS. DNS changes can take time to spread, so do not assume the domain is ready as soon as you save the records. Confirm the new domain loads a secure page before moving the live site.
Make a list of your key URLs, including pages that bring in search traffic or links from other sites. This list will help you check redirects later. Note your current WordPress version, PHP version, and key plugin settings too. A quick record makes it easier to spot changes after the move.
- Back up the database and all site files.
- Check that the new host supports your WordPress setup.
- Set up DNS and an SSL certificate for the new domain.
- Record important old URLs and current site settings.
Plan a low-traffic time for the move. If visitors can submit forms, place orders, or add content, pause those actions during the final copy. Otherwise, new data might be left behind on the old site.

Move the files and database to the new domain
There are two common ways to copy a WordPress site: use a migration plugin or move the files and database by hand. Tools such as All-in-One WP Migration can package the site for export and import. WP Migrate DB can help move and update the database. Check each tool’s limits before use, since large sites may need extra storage or a paid plan.
For a plugin move, install the tool on both sites if its steps require it. Export the old site, then import that file on the new installation. Follow the tool’s instructions for any URL replacement or file size limits. Keep the old site intact until you have checked the new one.
A manual move gives you more control. Copy the WordPress files with your host’s file manager or a secure file transfer tool. Export the old database, create a database on the new host, and import the saved data. Update the new site’s database connection details in its configuration file.
After the copy, replace the old domain in the database with the new one. Use a WordPress-aware search-and-replace tool, such as WP Migrate DB, rather than a plain text replacement. WordPress can store data in a serialized form, and a basic replacement can damage it. Keep your backup until the site works as expected.
If you are moving hosts and domains at once, check the new host’s setup notes. Some hosts can copy the site for you, but still check the files, database, and domain settings yourself. A migration is not complete just because the home page appears.

Update WordPress settings and SEO details
Once the files and database are in place, set the new address in WordPress. Go to Settings, then General, and update both the WordPress Address and Site Address fields. Use the full secure address, such as https://example.com. If you cannot reach the dashboard, you may need to change these values through the database or your host.
Check the site’s canonical URLs, XML sitemap, and internal links. These should point to the new domain, not the old one. Update links in menus, buttons, image captions, and page content where needed. A search-and-replace tool can help, but inspect important pages by hand afterward.
Set up a permanent 301 redirect for every old URL that has a matching page on the new site. For example, redirect oldsite.com/services/ to newsite.com/services/. Avoid sending every old URL to the new home page. That can confuse visitors and may weaken the value of links to specific pages.
Redirect rules can live in your server configuration or a trusted redirect tool. Keep the old domain registered and active so those rules continue to work. Do not remove the old site or its redirects after a few weeks. Keep them in place for at least a year, and longer when you can.
Use Google Search Console to verify both domains and submit the new sitemap. Google’s site move guidance explains how to use its Change of Address tool when the move qualifies. The tool does not replace redirects. It helps Google understand the move while it crawls the new URLs.

Test the new domain before you call the move done
Test the new site on desktop and mobile. Open the home page, key landing pages, blog posts, and contact forms. Check that images load, menus work, and links lead to the right places. Try logging in and publishing a test draft if your role allows it.
Check a sample of old URLs and confirm each one redirects to its closest new match. Test pages with and without trailing slashes, and check both HTTP and HTTPS versions. Fix redirect chains, where one URL redirects to another before reaching the final page. Each old URL should reach its destination in one hop when possible.
Look for broken links and missing media with a crawl tool or a broken-link checker. Also check the browser console and your host’s error logs for serious faults. Clear caching plugins and server caches if the site shows old content. If you find a broken page, fix its link or redirect before removing the old setup.
Review your security certificate and mixed-content warnings. A mixed-content warning can appear when a secure page still loads an image or script over HTTP. Update those links to HTTPS, then test forms and checkout steps again. Do not rely only on the home page test.
- Test key pages, forms, menus, and account sign-in.
- Check old URLs for direct 301 redirects.
- Find broken links, missing images, and mixed content.
- Review error logs and clear caches after fixes.
Watch your analytics and Search Console data after launch. Some short-term changes in visits or indexing can happen while search engines crawl the new URLs. Compare page-level traffic and errors, not just total visits. Act quickly if important pages drop out or return errors.
Finalize the move and keep watch
When tests pass, make the new site the only place where you publish updates. Keep the old host available until you know the redirects work and no new content remains there. Then cancel the old hosting only if the domain and redirect service will stay active. The domain itself must remain registered for old links to keep working.
In Search Console, watch the new domain’s indexing, crawl errors, and sitemap status. Check that the old domain still sends traffic through redirects. Review your analytics for visits to old URLs and look for landing pages with sudden drops. These checks can reveal a missing redirect or a page that did not copy well.
Keep a dated copy of your backup and migration notes. Record the redirect rules, DNS changes, and any fixes made after launch. If a problem appears later, those notes can help you trace what changed. With sound backups, direct redirects, and steady checks, you can move hosts or domains with less risk to your search traffic.
Step-by-step
- 01 Back up the full site
Save the database and every WordPress file, including themes, plugins, and media. Store a copy away from the old hosting account.
- 02 Prepare the new domain and host
Set the DNS records and install an SSL certificate. Confirm that the new domain loads securely before copying the live site.
- 03 Copy site files and database
Use a migration plugin or move the files and database by hand. Update old domain values with a WordPress-aware tool.
- 04 Update addresses and redirects
Change both WordPress address fields to the new HTTPS domain. Add direct 301 redirects from each old URL to its closest new page.
- 05 Test and tell Google
Check pages, links, forms, images, and redirects. Verify the domains in Search Console and submit the new sitemap.
Frequently asked questions
- How do I move a WordPress site to a new domain?
- Back up the full site, prepare the new domain and host, then copy the files and database. Update the WordPress addresses, add 301 redirects, test key pages, and tell Google about the move.
- Will changing my WordPress domain hurt SEO?
- A domain change can cause short-term ranking shifts as search engines find and index the new URLs. Direct redirects, updated links, a new sitemap, and Search Console checks help protect traffic.
- Do I need to keep my old domain after migrating?
- Yes. Keep the old domain active so its URLs can redirect to the new site. Keep it registered for at least a year, and longer if possible.
- Should I update WordPress Address and Site Address?
- Yes. Set both fields to the new domain in Settings, then General. Use the full HTTPS address once the SSL certificate works.
- How do I tell Google that my site moved?
- Verify both domains in Google Search Console, submit the new sitemap, and use the Change of Address tool when the move qualifies. Keep the old-to-new redirects active.
Related reading
How to Add a Blog Page to WordPress
Create a separate home for your posts and help readers find them.
How to Set a Front Page in WordPress
Choose a page for your WordPress homepage and check the result.
How to Add Google AdSense to WordPress
Connect AdSense, request review, and tune ad placement with Site Kit.