Three laptops around a cloud with upload and download arrows on a blue background.

How to Migrate a WordPress Site Step by Step

Teckohost earns a commission when you buy through some links on this page, at no extra cost to you. Prices were checked on November 6, 2026.

To migrate a WordPress site, you copy its files and its database to the new host, point the new copy at the new database, test it, and only then switch your domain. You can do it with a migration plugin, by hand, or by asking your new host to do it for free.

This works for a move to a new web host, a new hosting environment, or a new domain. Pick the method first. Then follow the steps below in order, and keep your old hosting account until the new site has run cleanly for a few days.

How to migrate WordPress site files and the database safely

Every WordPress migration moves the same two parts. The WordPress files are the core software, your theme, your WordPress plugins, and your media files in the uploads folder. The WordPress database holds your posts, pages, comments, users and settings.

A copy of the files without the database gives you an empty site. A database without the files gives you content with no design. A complete backup has both, and a good migration plugin packages both into one archive.

If you are new to the platform, our guide to what WordPress is explains how the pieces fit together.

Choose your WordPress migration method before you touch anything

There are three ways to do a WordPress site migration. The right one depends on your site size, your comfort with servers, and what your new host offers.

Method Best for Skill needed Main risk
Host-run migration Anyone whose new host offers it None You depend on the host’s schedule and process
Migration plugin Small and medium sites Basic Upload size limits on the new host
Manual migration Large or complex sites, full control Comfortable with FTP and databases A typo in wp-config.php or a missed file

Most people should try the host-run option first because it costs nothing and removes the technical steps.

Several hosts will migrate your WordPress site for free

Before you spend an afternoon on this, check what your new hosting provider includes. These are the migration offers listed on each host’s own site on November 6, 2026.

Host What its site lists for migration
Hostinger Free website migration on its WooCommerce and cloud hosting pages
Bluehost A free site migration tool on every plan
SiteGround Free site migrations and a WordPress migrator plugin on its WordPress plans
Kinsta Unlimited free migrations on its hosting plans
Cloudways Free managed migration listed on its Autonomous plans, and free migration among its platform features
WP Engine Managed site migrations on its Business plan

We earn nothing if you buy SiteGround, because we have no affiliate link with it. Terms differ by plan and can change, so confirm the details on the host’s page before you buy. Our guide to the best WordPress hosting compares the hosts side by side.

Do this pre-migration checklist first

Most failed moves fail because of what was skipped before the move. Work through this pre migration checklist and note your answers somewhere safe.

  1. Take a complete backup of your files and database. Our WordPress backup guide shows how.
  2. Update WordPress, your theme and all plugins on the current WordPress site, then confirm the site still works.
  3. Delete what you do not use: inactive plugins, old themes, spam comments and unused media. A smaller site moves faster.
  4. Write down your current PHP version and check that the new host supports it. See our list of WordPress server requirements.
  5. Collect your logins: the old hosting account, the new hosting account, your domain registrar and your DNS provider.
  6. Lower your DNS TTL to a few minutes a day before the switch if your DNS provider lets you. This speeds up the final cutover.
  7. Pick a quiet time. Avoid your busiest hours and, for a store, avoid pausing orders mid-sale.

For the wider job of moving a whole website, including email and other services, use our website migration checklist.

The migration process at a glance

Whichever route you pick, the migration process follows the same order. You back up the entire WordPress site, build an empty home for it on the new web host, move the website files and the database file across, connect them, test, and then switch DNS.

The same logic applies when you move a WordPress website between two folders on the same server, or when you migrate multiple WordPress sites one after another. Do one site at a time and finish its checks before you start the next.

The database file is the part people forget. Your database tables hold everything you typed into WordPress, so an export of the site files alone is never enough to move an entire site.

A migration plugin moves your site in about six steps

A WordPress migration plugin exports your files and database into one package, then rebuilds them on the new host. Three plugins are widely used, and all three have free versions on WordPress.org.

  • Duplicator describes itself as a way to move, back up or clone a site, and says backups of any size, encrypted archives and one-click restore are in the free plugin.
  • All-in-One WP Migration says the free plugin backs up and exports sites of any size. Your new host decides how large a file you can upload.
  • UpdraftPlus is a backup and migration plugin that lists more than 3 million active installs.

Each plugin has paid versions with extra features. We have not run our own migrations with them, so check each plugin’s page for current limits.

The plugin steps

  1. Install WordPress on the new host, or use a temporary address the host provides.
  2. Install your chosen backup and migration plugin on the old site and create a full export.
  3. Download the archive to your local computer.
  4. Install the same plugin on the new WordPress installation.
  5. Import the archive. If the upload fails on size, raise the PHP memory limits and upload limit with your host, or use the plugin’s installer method.
  6. Log in to the WordPress dashboard on the new site, save your permalinks, and run through the testing list below.

Which is the best WordPress migration plugin?

There is no single best WordPress migration plugin for every site, and we have not benchmarked them. Choose by situation. A WordPress backup plugin you already run, such as UpdraftPlus, saves you installing another tool. Duplicator and All-in-One WP Migration are built around moving a site.

Whatever you choose, read the plugin settings before you start. Check where the archive is stored, whether it includes the database tables, and whether it excludes large folders. For a migration with just a few clicks, a managed WordPress host that does the work for you is usually easier than any plugin.

Turn off caching and security plugins on the old site while you export, then switch them back on afterward. Some security plugins block the import on the new site, so pause them there too.

Manual WordPress migration gives you full control

A manual WordPress migration takes longer, but it works on sites too big or too tangled for a plugin. You need an FTP client or the host’s file manager, and access to phpMyAdmin or an equivalent database tool.

Step 1: Download all the files

Connect to the old server with an FTP client and download the whole site folder to your local computer. This includes the core WordPress files, wp-content, and the .htaccess file. Hidden files may not show by default, so turn on hidden files in your client.

Step 2: Export the database as an SQL file

Open phpMyAdmin on the old host, select the site’s database, and choose Export. Save the SQL file to your computer. Export every table. Your wp-config.php file lists the database name if you are unsure which one is yours.

Step 3: Create a new database on the new host

In the new hosting control panel, create a new database and a database user. Give the user all privileges on that database and write down the name, username, password and host. These are your database credentials.

Step 4: Import the database

Open phpMyAdmin on the new host, select the new database, and import the SQL file. If the file is too large for the web tool, ask your host about command-line import or a larger upload limit.

Step 5: Edit wp-config.php with the new details

Open the downloaded wp-config.php file and replace the database name, username, password and host with the new values. A wrong value here causes the “Error establishing a database connection” message, so check each one twice.

Step 6: Upload the files to the new server

Upload the full site folder to the web root of the new server using FTP or the file manager. Wait until the transfer finishes completely. A partial upload is a common cause of white screens.

Step 7: Test before you change DNS

Preview the site without touching your live domain. Many hosts give a temporary URL. You can also edit the hosts file on your computer so that your domain points to the new server only on your machine. Then test as described below.

Put the old site in maintenance mode before the final copy

If your site changes often, switch on maintenance mode just before you take the final backup file. That stops new comments or orders from landing after the copy. Switch it off on the new site once DNS points there and your checks pass.

When you move to a new host with a newer PHP version, check PHP version compatibility for each plugin and your theme first. Update or replace any plugin that has not been maintained.

Switch your DNS settings last, not first

Your domain still points at the old server until you change it. When the new site passes your tests, update the DNS settings at your registrar or DNS provider. Either change the A record to the new server’s IP address, or change the nameservers to the ones your new host gives you.

Our guides to what DNS is and what a nameserver is explain the difference. Propagation can take from a few minutes to several hours, so some visitors will reach the old site for a while. Do not edit content on either site during that window.

Test the new site before you trust it

After the move, run a post migration check. Use a private browser window so your cache does not hide problems.

  • Open the home page, a few posts, and your most important landing pages.
  • Click through the menus and look for broken links and missing images.
  • Submit your contact form and confirm the email arrives.
  • Log in, edit a post, and upload an image.
  • For a store, add a product to the cart and complete a test order.
  • Confirm your SSL certificate is active and the padlock shows on every page.
  • Resave your permalinks under Settings, then Permalinks.

If your domain stays the same, your internal links and search rankings should carry over. If you also change your domain name, set up 301 redirects from every old address to the matching new one, and tell Google Search Console about the change.

Most migration errors have a short fix

Problem Likely cause What to check
Error establishing a database connection Wrong details in wp-config.php Database name, user, password and host
White screen Incomplete upload or PHP version mismatch Re-upload missing files and compare PHP version settings
Images or styles missing Old URLs still in the database Run a search and replace that handles serialized data
404 errors on inner pages Permalink rules not rebuilt Resave permalinks and check the .htaccess file
Import stops partway Upload size or time limit Raise limits or ask the host to import
Email stopped working Mail records point to the old host Recreate MX records at your DNS provider

Serialized data matters because WordPress stores some settings as text with a length count. A plain find and replace can break that count, so use a tool that understands it.

Keep the old account until you are sure

Do not cancel the old hosting account the moment DNS changes. Keep it for at least a week, and keep your pre-move backup for longer. If something fails, you can point your domain back. Before you cancel, confirm that no email, subdomain or file download still depends on the old account.

If you want a safe place to test changes before they go live, read about a WordPress staging site. For a broader walkthrough that also covers non-WordPress sites, see how to transfer a website to a new host.

Questions about migrating a WordPress site

Can you transfer a WordPress site to another host?

Yes. You move the files and the database to the new host, update the configuration file, and then change your DNS. Plugins and host-run services automate most of this, moving the site to a new hosting provider with few manual steps.

Is All-in-One WP Migration free?

The plugin has a free version that exports and backs up sites. Its page says the host sets the upload limit for restoring, and it also sells paid versions. Check the plugin page for what the paid tiers add.

How long does a WordPress migration take?

It depends on site size and your upload speed. A small site can move in under an hour with a plugin. A large store with many media files takes longer, and DNS changes add waiting time on top.

Can I migrate WordPress without downtime?

Mostly, yes. Your old site keeps serving visitors until you change DNS. Avoid publishing or taking orders during the switch, because new content could land on the old server and be lost.

Which host is best for an easy move?

Choose a host that lists free migration and has support available around the clock. Compare options in our best managed WordPress hosting guide and our best WordPress hosting guide.

Share your love
Tumisang Bogwasi
Tumisang Bogwasi