Plugins Required from WP Plugin Repository:
- WP Migrate DB
A. These first set of tasks will prepare the ‘New’ site:
- Create a database, install WordPress on the New site and install any updates available.
- Install and activate both plugins.
- Run WordPress Migrate DB from the Tools menu, but only to get the values for Current address (URL) and Current file path. Save these values for later use.
B. Next, get the data from the ‘Old’ (existing) site:
- Install and activate both plugins. Configure BackUpWordPress as needed.
- Run BackUpWordPress from the Tools menu and download the zip file to your computer. This is the backup of the unchanged site for emergencies, so be sure to include the database in this backup.
- Update WP and all plugins to the latest working version.
- Run BackUpWordPress again (with database) and download the zip file to your computer saving as a different filename. Don’t overwrite the other backup you made earlier in step B-2.
- Run WP Migrate DB from the Tools menu. Use the values you saved in step A-3 above for New address (URL) and New file path. Save the output file to your computer.
C. Now load the data into the New site:
- Unzip the backup file from the Old site.
- Edit wp-config.php and change the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST to the values for the New site. You can get these values from the wp-config.php file of the New site before you upload the Old site data.
- Note that the .htaccess file can contain rules that reference the Old site. Any such references must either be removed or rewritten to reflect the New site. One approach is to save a copy of the file from the Old site and then delete it from the upload. Then add parts back in as needed.
- It is safe to remove lines between # BEGIN WordPress and # END WordPress because WP will recreate these lines, although you may have to assign Permalinks back to default and then back to the current assignment to trigger this.
- Use ftp to copy the files to the New site, overwriting the initial installation.
- Use phpMyAdmin to import the database contents file produced by WP Migrate DB.
- Re-configure permalinks, verify static front page setting, menus, sidebars and widgets.