Skip to main content

Moving a WordPress blog

This post will describe various ways to move WordPress, either to a different server or to Jekyll.

Steps to make an exact copy

This includes all plugins, themes, posts, etc.

  1. download a copy of the database and save somewhere. Once downloaded, make a copy as a backup in case something goes wrong.
  2. do a search in the sql file for the current domain URL and replace with the new domain
  3. update the site location in the wp-config file.
  4. import the MySQL database and add the user at the new location.
  5. upload your WordPress files and test.

I have tried other various methods including web applications, but those have caused problems such as not completely disconnecting the databases - You will need to be sure that ALL URL references have been changed. In one instance WordPress core upgrade to the copied version, had also upgraded the first one as well since one reference was missed.

The safest way to move (but not exact)

  1. download a copy of your themes, and plugins
  2. download an export of your post files. If your using a multi-site, you will need to do this for each blog.
  3. download a fresh copy of WordPress, and set up your plug-ins and themes.
  4. import posts, map users making sure to check the box to download linked media.

Moving to Jekyll

Check out my latest blog post for an in-depth look at Jekyll: Setting up your development environment.