发布前,若步骤依赖主机商,我们会在至少两家平台各走一遍;否则在同一环境隔日执行两次。我们记录控制台报错、不同地区的界面文案差异,并在厂商调整按钮位置后立即更新文案。路径与截图每季度抽检。涉及 DNS、SSL 或付款时,我们确认回滚/补救选项,并链接到官方文档以获取权威表述。
Before migrating, ensure your new host is configured with PHP 8.2+ and MySQL/MariaDB. Create your hosting account, set up a database (note the name, username, and password), and confirm your new host's server address. SiteGround, Hostinger, and WP Engine all offer free migration services. Check if your new host will do it for you.
Never migrate without a fresh backup. Use UpdraftPlus, Duplicator, or All-in-One WP Migration to create a complete backup of your files and database. Store the backup on your computer or cloud storage. not just on the same server you're moving away from. This backup also serves as your migration package.
If migrating manually: log in to your current host's phpMyAdmin, select your WordPress database, and click Export. Choose "Quick" export method and SQL format. Download the .sql file. If using a migration plugin (Duplicator or All-in-One WP Migration), this is handled automatically as part of the backup package.
For manual migration: use FTP/SFTP (FileZilla is free and excellent) to upload all WordPress files to your new host's public_html directory. This includes the wp-content folder (themes, plugins, uploads) and all core WordPress files. For plugin migration: install the migration plugin on your new host and import the backup package from Step 2.
Log in to your new host's phpMyAdmin, select the empty database you created, and click Import. Upload the .sql file from Step 3. After import, update the wp_options table: change siteurl and home values to your domain (or temporary staging URL if testing first).
Edit the wp-config.php file on the new server to update the database connection details (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) to match your new database credentials. If testing on a temporary staging URL, also update the site URL constants if they were hardcoded.
Before pointing your live domain to the new host, test by temporarily editing your computer's hosts file to preview the new site. Alternatively, use a temporary staging URL if your new host provides one (SiteGround and WP Engine both do). Check all pages, forms, and checkout (if WooCommerce) work correctly.
Update your domain's nameservers (at your domain registrar) to your new host's nameservers. DNS propagation takes 1–48 hours globally. During this time, some visitors may see the old site and some the new. Your old host's site remains live during propagation, so no data loss occurs if both are in sync.