How to Migrate a WordPress Website Without Losing Content or SEO
WordPress migrationwebsite hostingSEO preservationsite redirectswebsite backups

How to Migrate a WordPress Website Without Losing Content or SEO

WWeb Made Easy Editorial Team
2026-12-06
7 min read

Move WordPress to a new host or domain with a practical checklist for backups, DNS, redirects, testing, forms, and SEO.

Moving a WordPress website to a new host or domain is manageable when you treat it as a controlled change rather than a single upload. This reusable checklist covers backups, staging, files, databases, DNS, redirects, forms, analytics, and search visibility so you can migrate with fewer surprises and verify that the finished site still works.

Overview

A WordPress migration usually involves moving two connected parts: the website files and the WordPress database. Files contain the core installation, themes, plugins, and media uploads. The database contains posts, pages, settings, users, menus, and much of the content displayed by the site. A complete migration must transfer both and reconnect them correctly.

There are two common scenarios:

  • Moving to a new host: The domain and public URLs stay the same, but the server, database, or hosting account changes.
  • Changing the domain: The site moves to a new host, a new domain, or both. Internal URLs, canonical settings, redirects, email, and search indexing require additional work.

Before starting, record the current site’s important details. Note the WordPress version, PHP version, database type and version if available, active theme, critical plugins, PHP memory limit, scheduled tasks, cache settings, and DNS records. The new environment should support the site’s current requirements before you attempt the transfer. Avoid upgrading several major components at the same time as a migration unless you have a tested reason to do so.

If the site is business-critical, schedule the final cutover during a quiet period and place the site in maintenance mode only for the shortest practical window. Keep the old hosting account active until the new site has passed testing and you have confirmed that DNS is resolving correctly.

Checklist by scenario

1. Prepare a safe backup

  1. Make a complete backup of the WordPress files and database.
  2. Download or copy the backup outside the current hosting account.
  3. Check that the backup contains wp-content/uploads, the active theme, plugins, and a usable database export.
  4. Record administrator access, hosting credentials, DNS access, email settings, analytics details, and Search Console access.
  5. Test that the backup can be opened or restored in a separate environment where practical.

A backup that has never been tested is an assumption, not a recovery plan. For a deeper process, see How to Test a WordPress Backup and Restore Your Website Safely.

2. Create the destination environment

Set up the new hosting account before changing DNS. Create the database and database user, then note the database name, username, password, and host value. Upload the WordPress files using the host’s file manager, SFTP, or another controlled transfer method. Import the database through the hosting panel or a database tool appropriate to the environment.

Check compatibility before launch. Confirm the PHP version, database support, file permissions, memory limit, upload limit, and web server configuration. If the old site relies on server rules in .htaccess, scheduled cron jobs, custom redirects, or special extensions, reproduce and test those settings on the new host.

3. Connect WordPress to the new database

Update the database connection values in wp-config.php if the new host uses different credentials. Do not overwrite security keys or other settings without understanding their purpose. If the database prefix or table names changed, confirm that the configuration matches the imported tables.

At this stage, use a temporary address, staging URL, hosts-file entry, or the host’s preview feature to test the site before public DNS changes. The exact method varies by host, so follow its current control-panel instructions and protect any private staging copy from search indexing.

4. Handle URLs when the domain changes

If the domain stays the same, avoid unnecessary search-and-replace operations. If the domain changes, update the WordPress Address and Site Address carefully, then perform a database-aware search and replace from the old URL to the new URL. Serialized data can break when changed with a basic text editor, so use a migration tool or command that understands serialized values. Make a fresh backup before replacing URLs.

Search for leftover references to the old domain in menus, image URLs, widgets, page-builder settings, custom fields, plugin options, CSS, JavaScript, canonical tags, and XML sitemaps. Review media rather than assuming every image transferred correctly.

5. Cut over DNS and preserve SEO

When the destination site passes staging tests, update the relevant DNS records or nameservers. DNS changes may not appear everywhere immediately, so continue checking both the old and new environments during the transition.

For a domain change, keep the old domain available and redirect each important old URL to its closest equivalent on the new domain. Avoid sending every old page to the homepage when a more specific destination exists. Check that redirects are server-side and do not create chains or loops. Update internal links, canonical URLs, sitemap settings, structured data references, social profile links, and email signatures.

After launch, verify the new property and domain variations in Google Search Console as appropriate. Submit the new sitemap and inspect representative URLs. A migration cannot preserve visibility if important pages are blocked, marked noindex, missing, or returning errors.

What to double-check

  • Permalinks: In WordPress, open Settings, then Permalinks, and save the existing structure once. This can refresh rewrite rules, but it is not a substitute for correcting server configuration.
  • SSL: Confirm that the certificate covers the live domain and that HTTP requests redirect to HTTPS without mixed-content warnings.
  • Media: Open posts, galleries, featured images, PDFs, and downloadable files. Check for missing files and incorrect paths.
  • Forms: Submit every important contact, booking, newsletter, and payment-related form. Confirm both the visitor confirmation and the notification email. Review domain email configuration separately using the business email setup checklist.
  • Users and permissions: Test administrator, editor, and ordinary visitor experiences. Confirm that the correct accounts and roles were retained.
  • Analytics and scripts: Check analytics, tag managers, consent tools, advertising pixels, live chat, and conversion events without duplicating tracking code.
  • Performance: Test key pages on desktop and mobile. Clear caches only after confirming the new cache configuration. Use the workflow in How to Speed Up a WordPress Website if the new server behaves differently.
  • Accessibility: Test keyboard navigation, headings, form labels, contrast, and focus states. Migration can expose template or plugin changes, so revisit the website accessibility audit checklist.

Common mistakes

SymptomLikely causeFirst action
Database connection errorIncorrect database name, user, password, or hostCompare wp-config.php with the destination database credentials and confirm the user has access.
White screen or fatal errorPlugin, theme, PHP, or memory incompatibilityUse hosting logs, temporarily disable plugins, and compare the destination PHP settings with the working site.
Images return 404 errorsIncomplete uploads transfer or incorrect URL replacementCompare the uploads directory, inspect image URLs, and regenerate only after the source files are present.
Pages show 404 errorsRewrite rules or permalink configuration did not transferSave the permalink settings, check server rules, and test custom redirects.
Forms stop sendingSMTP, DNS, plugin, or security settings differSubmit a test form, inspect logs, and verify the sending domain and recipient configuration.
Traffic falls after a domain changeMissing redirects, blocked crawling, changed URLs, or indexing problemsTest old-to-new URL mappings, robots settings, canonicals, sitemap submission, and Search Console reports.

Do not delete the old site immediately after DNS changes. Keep a verified backup and a rollback option until the new environment has handled normal traffic, forms, updates, and scheduled tasks.

When to revisit

Use this checklist before every host change, domain change, major redesign, staging-to-live launch, or emergency restoration. Revisit it when the hosting control panel, migration plugin, PHP version, database setup, DNS provider, or WordPress release changes. Migration workflows evolve because hosting interfaces and plugin steps change, even when the underlying principles remain the same.

For a practical final pass, copy this short launch checklist into your project notes:

  • Complete backup stored outside the old host and restoration path understood.
  • Destination PHP, database, SSL, storage, and server settings checked.
  • Files, database, media, users, menus, plugins, and theme transferred.
  • Search-and-replace completed safely only when the domain changed.
  • Permalinks, forms, email, analytics, caching, and key conversion paths tested.
  • DNS updated and the new site confirmed from more than one network or device.
  • Old URLs redirect correctly, new URLs are crawlable, and the sitemap is submitted.
  • Old hosting retained until monitoring and rollback checks are complete.

Once the site is stable, document the final DNS records, hosting credentials location, backup schedule, redirect map, and test results. That record will make the next migration faster and safer.

Related Topics

#WordPress migration#website hosting#SEO preservation#site redirects#website backups
W

Web Made Easy Editorial Team

WordPress and Web Publishing Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.