Migrating a bunch of WordPress blogs to a single WordPress 3.0 multi-site installation
📅 Jun 12, 2010
⌛ 1 minute
Simplify updating multiple WordPress blogs by combining them into a multi-site installation:
General setup:
- Set up WordPress as usual
- Follow https://wptheming.com/2010/03/wordpress-3-0-enable-network/ to enable multi-site; use sub-directory config
- Change wp-config.php and .htaccess as described in the admin
- Follow http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/ to enable domain mapping
For each site:
- Log in to the control panel
- Upgrade site to 3.0 by copying files over and reloading the control panel
- Add the site on the WPMU installation
- Map the domains
- Add domain to hosts file
- Export database to a file
- Edit the file, remove wp_options, wp_usermeta and wp_users tables from dump
- Rename prefixes from wp_ to wp_X_ where X is the blog id
- Import SQL into new database
- UPDATE wp_{ID}_posts SET post_author = 1
- Switch theme
- Move uploads and change post image path
- Reenable plugins
- Reenable widgets
- Restore options
- Check no broken Media
Especially in case of Thesis 1.7:
For Thesis, also see how to fix thumbs and post images.
https://kristarella.blog/2009/09/using-thesis-with-wpmu/
- Restore Thesis options
- Copy rotator images (if used)
- Copy custom.css
- Restore OpenHook
- chmod 666 custom/blog-name/custom.css
- chmod 775 custom/blog-name/cache