We use cookies for analytics and ads. See our Privacy Policy.
SEO Basics

How to Migrate Your Website Without Losing Traffic

How to Migrate Your Website Without Losing Traffic

Migrating a website to a new host sounds terrifying. Stories of sites going dark for days, search rankings evaporating, and months of recovery haunt the forums. The truth is, a well-planned migration is straightforward and can be done with zero downtime if you follow the right steps.

Before You Start: The Pre-Migration Checklist

1. Choose your new host and set it up first. Don't cancel your old hosting until everything is working on the new server. You'll need both active simultaneously during the transition.

2. Take a full backup of everything. Export your database, download all files via FTP, and keep copies in multiple places. This is your safety net.

3. Document your email setup. If you use custom email (name@yourdomain.com), note all your email configurations so you can recreate them on the new host.

Step 1: Copy Your Files to the New Server

Connect to your new hosting via SFTP (FileZilla is a free, excellent client) and upload all of your website files. This includes your CMS installation, theme, plugins, and uploads folder.

For WordPress, you can also use the Duplicator or All-in-One WP Migration plugin to create a complete package of your site for easy deployment on the new host.

Step 2: Export and Import the Database

Your database contains all your content — posts, pages, users, settings. Export it from your old host (via phpMyAdmin or cPanel's database tools) as a .sql file, import it into a newly created database on your new host, and update your wp-config.php file with the new database credentials.

Step 3: Test on the New Server Before Changing DNS

This is the step most people skip, and it causes all the horror stories. Before changing your DNS to point to the new server, test your site on the new server by modifying your local "hosts" file to preview the site.

Check every page, form, and function. Make sure images load, checkout works (if applicable), and there are no error messages.

Step 4: Reduce Your DNS TTL

24–48 hours before your planned migration, log into your domain registrar and reduce the TTL (Time To Live) of your DNS records to 300 seconds (5 minutes). This speeds up DNS propagation when you make the switch.

Step 5: Update Your DNS Records

Once your new server passes testing, update your DNS A record to point to your new server's IP address. Because you reduced the TTL, the change will propagate globally within minutes rather than 24–48 hours.

Step 6: Monitor and Confirm

After DNS propagation, confirm your site is loading from the new server by using a tool like "whatsmydns.net" to check DNS from different locations worldwide. Monitor your uptime using a free tool like UptimeRobot.

Step 7: Cancel Your Old Hosting

Wait at least 2 weeks before cancelling your old hosting. Keep it running in parallel as a backup. Once you're satisfied everything is working perfectly on the new host, then cancel.

Protecting Your SEO During Migration

  • Don't change your URL structure during the migration
  • Maintain all existing 301 redirects
  • Submit an updated sitemap to Google Search Console after the migration
  • Monitor Google Search Console for crawl errors in the week following the migration
Free Tool by HostGemini

Site Speed Directly Impacts Your SEO Rankings

Google uses Core Web Vitals as a ranking factor. Use our free 25-point Performance Audit to see exactly where your site is losing positions — and what to fix first.

Get My Free Score
Category: SEO Basics
Share this article:
Twitter LinkedIn

Comments

What did you think of this article? Any questions or tips to add?

No comments yet. Be the first to share your thoughts!

Leave a Comment