Yesterday I wrote a post explaining how to move your WordPress install within your website/server. Today I wanted to cover how to move your WordPress install to a completely different server.
Again, the flexibility of WordPress shines, making this not overly difficult to accomplish. If you aren’t changing your domain name, all you need to do is update your wp-config.php file and upload all of your files to their new server.
If you are changing your domain name with your move, here is the information you’ll need:
- Backup your WordPress database.
- Download the complete WordPress install to your hard drive and identify the folder as your OLD installation.
- Login into your old blogs dashboard and update the Settings to reflect the website and blogs new location (both fields should be the same).
- Now, download the complete WordPress install to your hard drive, but this time identify the folder as your NEW installation. This will include the settings change you just made.
- Download a copy of your WordPress database (keeping the old one) and then upload it to the new server. You’ll want to keep the same database name and recreate the user login information (you can use your same user name and password). If you change the database name, you’ll need to update your wp-config.php file to reflect the change.
- Upload your NEW installation folder so that your blog is now working in its new location!
If you want to keep your old blog, you’ll need to upload the OLD folder to the OLD location of your blog and readjust the General Settings tab.
Another way to accomplish all of this is to simply make a fresh WordPress install and export/import your posts to the new location. This isn’t the most ideal method, but it is much easier and will get the job done.
For additional information, you’ll want to consult the WordPress Codex.