CompareHostingOnline

Home / Guides / How to transfer a WordPress site to a new host

Guide

How to transfer a WordPress site to a new host

A step-by-step checklist for moving a WordPress site with minimal downtime, using a host migration, a plugin or a manual move.

By Muhammad Hamza, Founder & EditorUpdated Nov 28, 2026
Old hostNew host Then point DNS

Short answer

To move a WordPress site, take a full backup, set up the new host, copy the files and database (or use the host's free migration), test the site on the new server, then switch your DNS. Keep the old host until you have confirmed everything works.

Last verified Nov 28, 2026 · How we test

The big picture

Move first, switch last
  1. Back upFiles and database
  2. Copy to new hostMigration, plugin or manual
  3. TestBefore DNS changes
  4. Switch DNSPoint the domain at the new host

Choose how to migrate

Migration methods
TypeLow effortControlCostBest for large sites
Host migration service
Migration plugin
Manual move

Editorial ratings from 1 (weak) to 5 (strong). Many hosts offer migration free.

The checklist

  1. Back up everything

    Files and database, stored somewhere other than the old host.

  2. Set up the new host

    Create the account and check the PHP version and storage.

  3. Copy the site

    Use the host tool or a plugin, or move files and import the database manually, then update wp-config.php.

  4. Test before switching DNS

    Use a temporary address or a local hosts-file entry.

  5. Recreate extras

    Email accounts, cron jobs, FTP or SSH users and custom DNS records.

  6. Lower your DNS TTL a day before

    So the change spreads faster.

  7. Switch DNS

    Then watch propagation until the new records resolve everywhere.

  8. Check after the switch

    Forms, checkout, SSL, redirects and key pages.

  9. Keep the old host a few days

    Then cancel it.

Common problems

  • Broken links or mixed contentUpdate the site URL and fix hard-coded addresses.
  • Missing imagesConfirm the uploads folder copied completely.
  • Email stops workingRecreate MX records and mailboxes before the switch.
  • SSL warningsIssue a certificate on the new host before pointing DNS.

What are the ways to migrate WordPress?

The WordPress developer documentation describes the manual process: export the database, copy the files, edit the configuration and update the site address. Whichever route you take, finish with the checks in the website migration checklist.

MethodGood forWatch out for
Host migration servicePeople who want it done for themCheck scope: email, multisite, large sites
Migration pluginMost sites, with little technical skillLarge databases and time limits
Manual copyFull control and big sitesTakes time; easy to miss a step
WP-CLI and SSHDevelopers and repeatable movesNeeds SSH access; see what SSH access is

What do you do about the database and URLs?

WordPress stores its address in the database, and many plugins store full URLs inside serialized data. If the domain stays the same, the move is simple. If it changes, use a search-and-replace tool that handles serialized data, such as WP-CLI’s search-replace command or a reputable plugin, rather than editing the SQL file by hand, which can corrupt settings. Update wp-config.php with the new database name, user and password, and check that the table prefix matches.

How do you test the new site before switching DNS?

  1. Use a temporary URL or the hosts file

    View the new server at your real domain without changing public DNS.

  2. Click through everything

    Pages, menus, forms, search, logins and checkout.

  3. Check permalinks and media

    Resave permalinks, then test images and downloads.

  4. Check PHP and plugins

    Read the error log; see PHP versions on hosting.

What should you do about email, SSL and SEO?

  • Move email only after the site works; see move email to a new host.
  • Issue HTTPS on the new host; see what an SSL certificate is.
  • Keep URLs identical, and use 301 redirects if any change.
  • Check robots.txt and the “discourage search engines” setting after the move.
  • Resubmit the sitemap and watch search console.

A worked example: moving a blog with 400 posts

A blog has 400 posts, 3,000 images and fifteen plugins. The owner decides to move from a crowded shared plan to a managed WordPress host. First they take a full backup and download it. Then they ask the new host to run its free migration, which copies files and the database and gives a temporary URL. They check ten key pages, the contact form and the newsletter sign-up on the temporary URL and find that the contact form sends mail from an address that fails authentication. They fix the sender settings and add the new SPF record.

Next they lower the TTL on their DNS records, switch the A record in the evening and watch the logs. Search console shows no new errors a week later. They cancel the old plan after ten days. The move took an afternoon of work spread over a week, and no visitor saw an outage.

What goes wrong most often?

  • A plugin that stores absolute URLs breaks after a domain change; use a proper search and replace.
  • A host with a lower PHP memory limit makes an import fail halfway; raise the limit or import in parts.
  • A caching plugin keeps serving stale files; purge caches after the move.
  • A staging copy blocks search engines and the setting is pushed to the live site; check the visibility setting.
  • Email stops because MX records were not copied; see move email to a new host.

Sources and further reading

Common questions

Can I move WordPress without downtime?

Yes. Set up the site on the new host, test it using a temporary URL or your hosts file, then change DNS. The old site keeps serving visitors until DNS updates, so there is no gap.

Do I need a plugin to migrate WordPress?

Not required. You can copy files and the database manually, use WP-CLI or ask the host to migrate it. Plugins make it easier for most sites, though large databases can hit time limits.

What should I check after migrating?

Pages, images, forms, logins, checkout, permalinks, SSL, email, scheduled tasks and the error log. Also check robots.txt, the search-engine visibility setting and search console for new errors.

Why do my images or links break after the move?

Usually URLs stored in the database still point to the old address, or file permissions and paths differ. Run a proper search-and-replace that handles serialized data and check permissions.

Should I use the host's free migration?

Often a good idea, especially for larger sites. Ask what it covers, whether it includes email, how they test the result and whether you can review the site before DNS changes.

Related

More guides

Esc

Use the arrow keys, then Enter.