Content Management

Migrate WordPress Site to New Host: 8-Step Guide

J
James Eriksson
··17 min read
Step-by-step guide to migrate WordPress to a new host using plugins, manual methods, or managed hosting. Minimize downtime, verify everything works, avoid common failures.
TL;DR
  • Three migration methods work: plugins (easiest), manual (most control), or managed hosting (zero hassle). Pick based on your skill level and site complexity.
  • Lower DNS TTL to 300 seconds 48 hours before switching to minimize downtime. Most visitors see the new site within 1-2 hours.
  • Test everything on the new host before you flip DNS: SSL, forms, images, WooCommerce payments, and SEO redirects. Keep the old host running 48+ hours after migration.
  • Managed WordPress hosting costs $50-500/month but includes free migration, staging, automated backups, and 24/7 support. Worth it for agencies and high-traffic sites.

Moving a WordPress site to a new host does not have to break your site or tank your SEO. You have three proven paths: use a migration plugin (fastest), migrate manually with FTP and databases (most control), or outsource it to managed hosting (least stress). This guide walks through each method, the DNS cutover, common failures, and how to verify everything works before your old host goes dark.

When You Should Migrate Your WordPress Site

You migrate for one of three reasons: your current host is too slow, too expensive, or too limited. Performance matters. If your site loads in over 3 seconds, you lose visitors. Cost matters. If you are paying $50/month for a host that could do the job for $15, migrate. Capability matters. If your host does not support the PHP version your plugins need, you are stuck.

Other red flags: poor support (you email and hear silence for days), feature limits (cPanel, SSH, database size), or compliance gaps (if you need EU data centers or specific privacy rules, some hosts do not offer them). Do not migrate on impulse. Plan for at least one week of prep work. The actual switch takes 2-6 hours if you use a plugin, up to 12 hours if you do it manually.

One last reason to migrate: you outgrew your host. If you started on shared hosting and now run a commerce site with daily backups, staging, and monitoring needs, managed WordPress hosting solves all of this for you in one move.

Before You Migrate: Pre-Migration Checklist

Fail to prepare and you prepare to fail. Start here.

Back up everything. Use your host's backup tool or a plugin like UpdraftPlus (4 million+ active installations, 4.8-star rating). Download the backup to your computer. You need: the full WordPress database, every file and folder (wp-content, wp-config.php,.htaccess), and a list of all active plugins and themes. If the migration goes sideways, you roll back.

Choose your new host and verify it supports your setup. Check the PHP version your plugins need (most want PHP 7.4 or higher). Check the database type (MySQL 5.7 or higher, or MariaDB). Check disk space. If you have a 5 GB site and the host only gives you 10 GB total, you have almost no room to breathe. Check the control panel: does it have one-click WordPress installs, SSH access, staging areas, automated backups? Managed hosts have all of these. Budget shared hosts have none.

Lower your DNS TTL 48 hours before the cutover. TTL is "time to live", the number of seconds DNS records stay cached. By default it is 86,400 seconds (24 hours). Lower it to 300 seconds (5 minutes). Why? When you flip the A record to point at your new server, visitors worldwide will get the old IP for up to 24 hours unless you lower TTL first. At 5 minutes, they switch over in minutes.

Test the new host. Most hosts give you a staging area or the ability to access your site via a temporary URL before you flip DNS. Use it. Install WordPress, run your migration (via plugin or manually), and verify everything loads. Test forms. Test payments if you use WooCommerce. This is free insurance.

Three Ways to Migrate: Plugin vs Manual vs Managed

You have options. Pick the one that fits your skill level and risk tolerance.

Migration plugins (easiest, file size limits). All-in-One WP Migration (5+ million active installs, 4.5-star rating), Duplicator (1+ million installs, 4.9 stars), and UpdraftPlus all do the same job: they package your site into a file, download it, and install it on the new host. No FTP. No database editing. All-in-One and Duplicator have free versions that work for most sites. UpdraftPlus is freemium (the free version works, paid adds backup storage and staging). The catch: file size limits. All-in-One on free only handles 512 MB. Duplicator is unlimited but has a 2 GB timeout on import. If your site is over 1 GB, manual migration or a paid plugin tier is safer.

Manual migration (most control, steepest learning curve). You export the database via phpMyAdmin, download every file via FTP (using FileZilla), set up the new WordPress installation manually, upload files, import the database, and run Better Search Replace to update URLs. This gives you full control. You understand every step. The downside: one mistake (wrong database credentials, forgotten.htaccess file, file permissions set wrong) breaks your site. The timeline: 4-8 hours for someone who has done it before, 12+ hours for a first-timer.

Managed WordPress hosting with migration included. Most managed hosts (Opsily, Kinsta, WP Engine) migrate you for free. You submit your current site credentials, they handle the rest, and your site goes live on their infrastructure with zero downtime. No learning curve. No risk. The cost: managed hosts run $50-500/month depending on traffic. For a small site, that is expensive. For an agency managing 20 client sites, it is cheaper than paying your team to migrate manually each one.

Method 1: Using a Migration Plugin

This is the path most people take. I will walk through All-in-One WP Migration because it is free and straightforward.

Step 1: Install the plugin on your current site. Go to Plugins, New, search for "All-in-One WP Migration". Click Install, then Activate. You will see a new menu item on the left: "All-in-One WP Migration".

Step 2: Back up your current site. Click Backups in the plugin menu. Click "Create a backup now". Wait. It may take 5-30 minutes depending on site size. When done, download the backup file to your computer. This is your insurance policy.

Step 3: Export your site. Go to All-in-One WP Migration > Export. Choose "File". The plugin creates a zip file that contains your entire site (database, files, everything). The download will start. Save it somewhere safe. File size matters: if it exceeds 512 MB on the free plugin, you will hit a limit and the export will fail. If that happens, upgrade to the paid plan or use Duplicator instead.

Step 4: Set up WordPress on your new host. Most hosts have a one-click installer. Log into your new host control panel (cPanel, Plesk, or whatever your host uses). Find the WordPress installer. Click it. Choose your domain and database name. Let it run. You will get a fresh WordPress installation in 5-10 minutes.

Step 5: Install All-in-One WP Migration on the new site. Log into the new WordPress admin, go to Plugins, search for All-in-One WP Migration, install and activate it.

Step 6: Import your site. Go to All-in-One WP Migration > Import. Click "Import from file". Select the backup zip you downloaded in Step 3. The plugin unpacks it and replaces everything: database, themes, plugins, media, settings. It takes 10-30 minutes depending on file size. When it finishes, your new site will look exactly like your old one.

Step 7: Test before you switch DNS. Visit your new site via its temporary URL (your host provides this). Check a few pages. Load an image. Click a form. Test any WooCommerce products if you sell anything. If something is broken, you catch it now, not after DNS flips and your customers see the problem.

Common failures: Timeouts (increase PHP timeout in wp-config.php), database import fails (the new host database is too small, ask support to increase it), images do not load (they are still pointing to the old domain, run Better Search Replace to fix URLs). If the import fails halfway through, delete the new WordPress installation and start over from Step 4.

Method 2: Manual Migration with FTP and Database

Use this if your site is very large (over 2 GB), you have heavy WooCommerce customizations, or you want full control.

Step 1: Export your database. On your current host, go to phpMyAdmin (usually in cPanel under Databases). Select your WordPress database. Click Export. Choose "SQL" format. Click Go. A.sql file downloads. This file contains every post, comment, user, and setting.

Step 2: Download all files via FTP. Download FileZilla (it is free). Open it. Enter your host FTP credentials (you get these from your host control panel). Connect. Navigate to the folder where WordPress lives (usually "public_html" on shared hosts). Select every file and folder. Right-click, Download. This takes 10 minutes to an hour depending on how many files you have.

Step 3: Create the database on your new host. Log into your new host control panel. Go to Databases (or MySQL Databases). Click Create New Database. Give it a name. Create a database user. Give the user a strong password. Set the user permissions to All Privileges. Write down: database name, username, password, and hostname (usually "localhost").

Step 4: Upload files to the new host. Open FileZilla. Connect to the new host with its FTP credentials. Navigate to public_html (or the directory where your site should live). Drag the WordPress files you downloaded in Step 2 into it. Upload. This takes 20 minutes to an hour.

Step 5: Configure wp-config.php. Find the wp-config.php file on your computer. Open it in a text editor (Notepad on Windows, TextEdit on Mac). Find these lines:

define('DB_NAME', 'old_database_name'); define('DB_USER', 'old_username'); define('DB_PASSWORD', 'old_password'); define('DB_HOST', 'old_host');

Replace them with the new database credentials you created in Step 3. Upload the edited wp-config.php back to the new host via FTP. This tells WordPress where to find its new database.

Step 6: Import the database. On the new host, go to phpMyAdmin. Select the new database you created in Step 3. Click Import. Upload the.sql file you downloaded in Step 1. Click Go. The database imports. This takes 5-20 minutes.

Step 7: Run Better Search Replace. Your old site URLs are now hardcoded in the database (in posts, metadata, settings, everything). You need to swap them. Download the Better Search Replace plugin. Upload it via FTP to wp-content/plugins/better-search-replace. Go to your new WordPress admin, activate it, go to Tools > Better Search Replace. In "Find", enter your old domain. In "Replace", enter your new domain. Run it. It updates thousands of URLs instantly.

Step 8: Test everything. Visit your new site. Load pages. Check images (they should now load from the new domain). Test WooCommerce payments, form submissions, anything custom. If something is broken, you likely missed a URL replacement or a plugin needs to be deactivated/reactivated.

WooCommerce gotchas: Payment gateways (Stripe, PayPal) check the domain for security. After migration, log into your Stripe/PayPal account and re-link your new domain. Otherwise, payments will fail. Same for SSL certificates: if you use a Comodo or EV certificate, ask your host to reissue it for the new domain. Free Let's Encrypt certificates usually re-generate automatically.

DNS Cutover and Minimizing Downtime

This is the moment of truth. When you change your DNS A record to point at the new server, some of your visitors will see the old site for a while (up to 48 hours worldwide, though usually 1-2 hours). You cannot avoid this completely, but you can minimize it.

Before you switch: Verify your new site is perfect on its temporary URL. Test on a real browser (not just localhost). Load images, submit a form, check mobile. If anything is broken, fix it now. Do NOT switch DNS yet.

Lower TTL 48 hours before the switch (you should have done this already). If you did not, do it now. The lower the TTL, the faster your visitors switch to the new server when DNS updates.

Test locally first. On your computer, edit your hosts file (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts on Mac/Linux). Add a line like:

203.0.113.1 yoursite.com

(Replace 203.0.113.1 with the new server IP from your host). Save. Now when you visit yoursite.com, your computer goes to the new server, but the rest of the world still sees the old one. Test everything works. When satisfied, delete that line from your hosts file.

Switch DNS. Log into your domain registrar (GoDaddy, Namecheap, Bluehost, wherever you registered the domain). Find the DNS settings. Change the A record to point to the new host's IP address (your new host provides this, usually in a getting-started email). Save. Within minutes, most of your visitors will get the new server. Some may still see the old site for up to 48 hours due to ISP caching, but 90% will see the new site within 1-2 hours.

Monitor after the switch. For the first 24 hours, check your site every few hours on different networks (use your phone on 4G, a friend's WiFi, a coffee shop). Check the browser console for errors. Check your email for contact form submissions (do they arrive?). If you see errors, you may have missed a step. The good news: since you kept the old site running, visitors who hit it still have a working site. You can roll back by switching DNS back to the old server.

Keep the old host running for 48 hours minimum. Only delete your old site and cancel the old host after DNS has fully propagated and your new site is confirmed working. If a DNS change got messed up and visitors still hit your old server, you want it there.

Post-Migration Checklist: Verify Everything Works

Migration is not done until you verify every piece works.

SSL certificate. Check that HTTPS works (visit https://yoursite.com). Most hosts provide free Let's Encrypt certificates and auto-install them. If the SSL shows as invalid, your host may need to re-issue it. Contact support. Never launch without HTTPS. Google ranks it lower otherwise, and you tell every visitor their data might not be safe.

Forms and comments. Fill out a contact form. Verify it arrives in your email. Leave a test comment on a post. Verify it appears (once approved). If forms do not work, check that your email plugin (like WP Mail SMTP) is set up correctly and your host allows outgoing email.

Images and media. Check a few pages with lots of images. Verify they load. Check the browser console (F12 key) for broken image errors. If images fail, it usually means Better Search Replace missed some hardcoded URLs in a plugin or theme.

Plugins and functionality. Activate all your plugins and themes. Test any custom features. If you use WooCommerce, buy a product (or use a test payment card) to verify checkout works. If you use a booking plugin, verify booking emails send. If you have SEO plugins, check they are configured.

Speed test. Use GTmetrix or Google PageSpeed Insights to test your site speed. Compare it to your speed on the old host. It should be the same or faster (a good reason to migrate). If it is slower, your new host may have performance issues. Contact support or consider switching hosts.

Google Search Console. Log into Google Search Console. Click Settings, then Change of Address. Tell Google you moved from the old domain to the new one (only do this if you changed domains; if the domain is the same, skip this). Google will re-index your site faster. Check the Coverage report for crawl errors. Submit a new sitemap.

Check redirects. If you changed domains, verify all old URLs 301 redirect to new ones. Set up.htaccess rules or use a plugin like Redirection. This keeps your SEO equity. Without redirects, every old link dies and your rankings tank.

Cancel the old host. Only after 48+ hours and everything works. If you cancel too early and DNS somehow points to the old server, visitors get a "host no longer exists" error instead of your site. Wait. Cancel the old host only when you are 100% sure it is not needed.

When Managed WordPress Hosting Makes Sense

All the steps above are free but take time and have failure points. Managed WordPress hosting takes all the work off your plate.

You pay $50 to $500 per month (depending on traffic), but here's what you get: They migrate your site for you (zero downtime, no work). They run automatic daily backups. They handle WordPress updates and security patches. They offer staging areas so you can test changes before they hit the live site. They give you 24/7 support (actual humans answer the phone or email). They optimize speed automatically. They handle SSL certificates, CDN, caching, all of it.

When is managed worth it? You run an agency managing 10+ WordPress sites for clients, you run a commerce site with over 10,000 monthly visitors, you do not have an in-house developer, or you value your time more than the $200-500 monthly premium. For a solo blogger with 1,000 monthly visitors, managed hosting is overkill. For a marketing agency managing 15 client websites, managed hosting (like Opsily, which uses EU data centers with automatic staging and backups) is cheaper than paying a developer to migrate and manage each one manually. Managed WordPress on Opsily also gives you European data residency if that matters for GDPR compliance.

When is DIY the right choice? You have a developer on staff or you hire one. Your site is small and stable (no major changes). You want full technical control. You want to pay the absolute minimum. DIY is for builders and tinkerers. Managed is for businesses that want results without the technical burden.

Frequently Asked Questions

How do I migrate my WordPress site without losing data?

Back up everything first (database + files). Use a plugin like All-in-One WP Migration (5+ million installations) or Duplicator (1+ million), which packages your entire site, or manually export via phpMyAdmin and FTP. Test on the new host before you switch DNS. Downtime is 1-2 hours for most visitors.

Can I migrate a site with WooCommerce or complex setups?

Yes, but verify extra steps. After import, reconfigure payment gateways (Stripe, PayPal) in your new dashboard. Run Better Search Replace to update all hardcoded domain URLs. Test a full checkout with a payment card. Complex plugins sometimes need reactivation.

How long does migration take?

Plugin migration: 1-2 hours for most sites. Manual migration: 4-8 hours for someone experienced, 12+ hours for a beginner. DNS propagation: 1-2 hours for most visitors, up to 48 hours for the entire internet. Managed migration: 2-4 hours, handled by the host.

Will my SEO rankings drop after migration?

No, if you do it right. Set up 301 redirects from old URLs to new ones. Tell Google about the move in Google Search Console. Your rankings will stay the same. Without redirects, your rankings drop significantly.

Can I test the migration before going live?

Yes. Most hosts give you a staging URL. Migrate to it, test everything, then switch DNS. Or use the hosts file trick on your computer to test locally. This catches problems before your customers see them.

What do I do if the migration fails or I need to rollback?

You have a backup (you created one, right?). Delete the broken new site. Use the backup to try again. Or switch DNS back to the old host while you troubleshoot. Keep the old host running for at least 48 hours after DNS switches.

Do I need technical skills to migrate WordPress?

Not if you use a plugin. All-in-One or Duplicator handle it via point-and-click. Manual migration (FTP, phpMyAdmin, database editing) requires some technical comfort. If you are not comfortable with that, pay a managed host or hire a developer.

The Bottom Line

You have a migration path. If your site is small and simple, a plugin handles it in an hour. If it is large or complex, manual migration gives you control at the cost of time. Either way, the key is preparation (backup, DNS TTL, testing) and verification (SSL, forms, images, speed, SEO). You can minimize downtime to 1-2 hours if you plan ahead. If you manage multiple WordPress sites or want zero downtime, Opsily's managed WordPress hosting includes free migration, so your sites move without lifting a finger.

Hosting your WordPress site? Opsily handles migration
Automatic setup, EU data centers, free migration, staging included. For teams managing multiple WordPress sites, our managed hosting saves time and cost.
Start Free

Ready to self-host your own apps?

One server. Multiple apps. No per-app fees.

Get started →