How to Migrate WordPress Site to New Host Without Downtime

Migrating WordPress to a new host typically causes hours of downtime. However, proper planning enables zero-downtime migrations, keeping your site accessible throughout the transfer. This complete guide teaches DNS management, parallel setup, and seamless cutover strategies for downtime-free WordPress migrations.

Why Zero-Downtime Migration Matters

Every minute of downtime costs money, SEO rankings, and user trust. E-commerce sites lose sales, high-traffic blogs lose ad revenue, and all sites risk search ranking penalties. Zero-downtime migration eliminates these risks through parallel operation and strategic DNS switching.

Pre-Migration Preparation

Create Complete Backup: Full site and database backup before starting.

Document Current Configuration: Note PHP version, installed extensions, server settings, and special configurations.

Test New Host: Verify new hosting meets WordPress requirements and matches or exceeds current server specifications.

Choose Low-Traffic Period: Schedule DNS changes during lowest traffic hours for minimal impact.

Step 1: Set Up WordPress on New Host

Install WordPress on new host without pointing domain yet.

Installation Methods:

  1. Use new host’s WordPress installer
  2. Upload files via FTP
  3. Use hosting migration tools

Temporary Access: Access new site via:

  • Temporary URL provided by host
  • IP address access
  • hosts file modification

Step 2: Transfer WordPress Files

Copy all WordPress files to new host.

Via FTP:

  1. Download entire site from old host
  2. Upload to new host public_html
  3. Preserve file permissions

Via SSH (faster):

# On old server
tar -czf site-backup.tar.gz /path/to/wordpress/

# Transfer to new server
scp site-backup.tar.gz user@newserver:/path/

# On new server
tar -xzf site-backup.tar.gz

Using Migration Plugins:

Duplicator or All-in-One WP Migration create packages automatically.

Step 3: Export and Import Database

Transfer database content to new host.

Export from Old Host:

Via phpMyAdmin:

  1. Select database
  2. Export → Quick export
  3. Download SQL file

Via WP-CLI:

wp db export database-backup.sql

Import to New Host:

Via phpMyAdmin:

  1. Create new empty database
  2. Import SQL file
  3. Grant user permissions

Via command line:

mysql -u username -p database_name < database-backup.sql

Step 4: Update wp-config.php

Configure database connection on new host.

define('DB_NAME', 'new_database_name');
define('DB_USER', 'new_database_user');
define('DB_PASSWORD', 'new_database_password');
define('DB_HOST', 'localhost'); // or new host's DB server

Step 5: Test New Site Thoroughly

Verify complete functionality before DNS switch.

Testing Checklist:

  • Homepage loads correctly
  • Admin login works
  • Posts and pages accessible
  • Images display properly
  • Forms submit successfully
  • E-commerce checkout functions
  • SSL certificate active
  • Permalinks resolve correctly
  • Plugins activated and functional

Access via temporary URL or hosts file modification for testing.

Step 6: Reduce DNS TTL

Lower TTL (Time To Live) 24-48 hours before migration.

Why Lower TTL: Shorter TTL means faster DNS propagation when switching. Change from 86400 (24 hours) to 300 (5 minutes).

How to Change:

  1. Access domain registrar DNS settings
  2. Modify A record TTL to 300
  3. Wait 24-48 hours for change to propagate

Step 7: Sync Data Before Switch

Ensure latest content transfers to new host.

For Active Sites:

  1. Put old site in maintenance mode
  2. Create final backup
  3. Transfer latest posts/content
  4. Import to new database
  5. Verify synchronization

Or use migration plugin to capture last-minute changes.

Step 8: Point Domain to New Host

Update DNS to point to new server.

Update Name Servers:

Option 1: Change A record to new server IP Option 2: Update nameservers to new host

DNS Propagation: Takes 5 minutes to 48 hours depending on TTL and location.

Step 9: Monitor During Propagation

During DNS propagation, both servers receive traffic.

Keep Both Sites Running: Maintain old site until propagation completes (24-48 hours).

Monitor Traffic: Check analytics to confirm traffic shifting to new host.

Test from Multiple Locations: Use tools like whatsmydns.net to verify global propagation.

Step 10: Post-Migration Verification

After full propagation, verify everything works.

Verification Steps:

  • Clear all caches (browser, WordPress, CDN)
  • Test all site functionality
  • Verify email delivery (SMTP settings)
  • Check SSL certificate
  • Test contact forms
  • Verify search functionality
  • Confirm cron jobs running
  • Check backup systems active

Alternative: Using Migration Plugins

Migration plugins automate the process.

Duplicator:

  1. Install on old site
  2. Create package
  3. Download installer and archive
  4. Upload to new host
  5. Run installer
  6. Update DNS

All-in-One WP Migration:

  1. Export site on old host
  2. Install WordPress on new host
  3. Install plugin on new host
  4. Import backup file
  5. Update DNS

Rollback Plan

If issues arise, rollback quickly.

Immediate Rollback:

  1. Change DNS back to old host
  2. Remove maintenance mode
  3. Continue using old host
  4. Troubleshoot new host offline

Keep old host active for 7 days minimum post-migration.

Common Migration Issues

Database Connection Error: Verify wp-config.php credentials match new database.

Broken Images: Update upload paths if directory structure changed.

404 Errors: Reset permalinks in Settings → Permalinks.

Email Issues: Reconfigure SMTP settings for new server.

SSL Problems: Install SSL certificate on new host before DNS switch.

Post-Migration Cleanup

After 7 days of stable operation:

  1. Cancel old hosting (after backup)
  2. Restore normal DNS TTL
  3. Update DNS records if needed
  4. Remove maintenance pages
  5. Configure new backups
  6. Update monitoring services

Conclusion

Zero-downtime WordPress migration requires parallel setup, thorough testing, and strategic DNS management. Set up the complete site on new hosting, test exhaustively via temporary access, lower DNS TTL, then switch domains during low-traffic periods. Maintain both sites during propagation and verify thoroughly post-migration. With proper planning, migrations complete seamlessly without any visitor-facing downtime.

  1. Duplicator Plugin
  2. All-in-One WP Migration
  3. WhatIsMyDNS Propagation Checker
  4. FileZilla FTP Client
  5. WordPress Migration Guide

Call to Action

Migrations require bulletproof backups. Backup Copilot Pro provides automated pre-migration backups and easy rollback. Migrate with confidence—start your free 30-day trial today!