This is the quick reference you need when the unfortunate task of migrating a WPMU installation to a new domain falls to you. These instructions should be sufficient for you to move your WPMU install, whether it’s within the same hosting account or you have to put it on a new server. Don’t freak out. We’re going to make this relatively painless for you. There are times when your new host will offer to move all of your data from your old host to the new one but this usually only involves moving the files and databases. There are a couple more steps involved but they won’t be difficult for you because you have this handy guide. Let’s get started!
1. Back everything up before you start this process – files, databases, etc.
You may be in a hurry, but you’re not brain dead, so I know that we can count on you to back up your data and not litter the WordPress forums with problems that could have been averted by making a simple backup.
2. Copy all of the files in your WPMU directory and move them to your new server or new directory via FTP.
If you don’t know how to use FTP, then crack a beer and start googling, my friend. ;)
3. Log in to phpMyAdmin and export your database as a .sql file.
The export tab should be clearly marked. You can find step-by-step help here.
4. Open the exported .sql file in a plain text editor. Perform a search and replace function for the domains.
Search for your old domain and replace it with new one. Save.
5. Create a new mysql database wherever you are hosting the new installation and a new user with all privileges.
(If this step isn’t something you can do in your sleep, then you should probably hire someone to move your site for you.)
6. Import your newly saved .sql file into the database you just created.
7. Open up your wpconfig.php file and input the values for your newly created database/user/password.
define(‘DB_NAME’, ‘wpmu’); // The name of the database
define(‘DB_USER’, ‘wpmu’); // Your MySQL username
define(‘DB_PASSWORD’, ‘hackme123′); // …and password
Save and upload.
Congratulations! You should be operational on your new domain now!
Tips and Hints:
- Make sure your FTP client copies over the hidden files as well so that you don’t lose your .htaccess file and waste two hours wondering why you’re getting 404 errors.
- The .sql file can be huge. If your OS crashes while editing it, you may want to shut down most of your applications before embarking on this process, especially resource hogs such as Photoshop and Firefox.
- If you have wildcard DNS enabled on your old domain for subdomain blogs make sure you’ve got it enabled at your new host if you’re changing hosting environments.
- If you want any of your inbound links to your old domain to work, you’ll need to do a little bit of redirection magic. Don’t forget about those.
- For those who dig command line instructions instead of using a GUI, I recommend this post. This can be really helpful if your phpmyadmin times out when you’re doing the import.