Before migration: prepare the ground
A successful WordPress migration starts 48h before the switch. Three preparatory actions dramatically reduce risks:
- Reduce DNS TTL of your domain to 300 seconds (5 min) at least 48h before migration. Standard TTL is 3600-86400s, which can extend propagation up to 24h after the change. With TTL 300s, propagation is typically < 30 min. Editable at your registrar (OVH, Gandi, Cloudflare).
- Audit plugins and themes before migration. Remove inactive plugins, those marked "not compatible with your PHP version", and unused themes. A 5-year-old WordPress site typically accumulates 30-50% of obsolete or duplicate plugins. Migration is the time to clean up.
- List critical elements: PHP version used (check
wp-admin/site-health.php), database (size, MySQL/MariaDB version), required PHP extensions (imagick, curl, mbstring, gd), cron tasks, SSL certificates, custom .htaccess redirects. These infos serve to reproduce the environment identically. - Optional maintenance mode: if you can afford 15 min of downtime, the WP Maintenance Mode plugin displays a waiting page during the switch. For e-commerce or high-traffic sites, prefer progressive migration without maintenance.