🔄 WordPress Migration = Move Sites
Moving WordPress is tricky. Migration moves sites safely. Files, database, settings — all transferred.
📝 Migration Steps
# 1. Backup Everything - Files (wp-content) - Database (SQL export) - Uploads folder # 2. Export Database - phpMyAdmin → Export - OR: wp db export backup.sql # 3. Copy Files - Download all files - Upload to new server # 4. Import Database - Create new database - Import SQL file # 5. Update URLs - Search and replace - Update wp-config.php - Update site URL # 6. Test Everything - Check frontend - Check admin - Check links # Tools - Duplicator (plugin) - All-in-One WP Migration - WP Migrate DB
🎯 Common Migrations
# Local → Live 1. Export local database 2. Search/replace URLs 3. Upload files 4. Import database 5. Update wp-config # Live → Live (new domain) 1. Export database 2. Search/replace old domain → new domain 3. Copy files 4. Import database 5. Update .htaccess # Live → Local (development) 1. Export live database 2. Search/replace live URL → local URL 3. Download files 4. Setup local environment # Search/Replace // In database UPDATE wp_options SET option_value = 'http://newdomain.com' WHERE option_name = 'siteurl'; UPDATE wp_options SET option_value = 'http://newdomain.com' WHERE option_name = 'home'; // Using WP-CLI wp search-replace 'old-domain.com' 'new-domain.com' // Using plugin Better Search Replace
💡 Migration Tips
- Always backup before migration
- Test migration first
- Update all URLs
- Check file permissions
- Test thoroughly after migration
“WordPress migration moves sites safely. Files, database, settings. Essential for site management.”
