Moving a WordPress site to a new server

I need to copy a WordPress site to a new server. I need this to go as quickly as possible. The URL won’t change, but the absolute paths will.

Here are the steps I thought of:

Read More
  • Put a maintenance message on the site
  • Copy the database
  • Copy all the files (the hidden ones as well, like .htaccess), with permissions
  • Check if there are no old absolute paths, and if so, update them
  • Check if everything’s working
  • Update the DNS records
  • Remove the maintenance message

Am I forgetting something?

Related posts

2 comments

  1. Well, your steps are pretty much all you need to do, the only other thing I’d do is to use the WP Migrate DB plugin(I personally use it and it saves me a lot of time when migrating the Database) – it supports for change of both URL and paths – you can change one or both of them as well. So here’s your list with my suggestion:

    • Put a maintenance message on the site
    • Install WP Migrate DB plugin on the WordPress site
    • Copy the database, using the above plugin from Tools > WP Migrate DB
    • Copy all the files (the hidden ones as well, like .htaccess), with permissions
    • Check if there are no old absolute paths, and if so, update them(I’m not sure if you mean in files or what, but I assume there shouldn’t be any in the files)
    • Check if everything’s working
    • Update the DNS records
    • Remove the maintenance message

    In theory you can also use the Maintenance Mode for the maintenance message – I know it has the scary message that it hasn’t been updated for over 2 years now, but honestly – I use it pretty much for every site I need to add temporary maintenance mode message and it works just great – I would usually add the 503.php file in the theme directory and make the plugin use that.

Comments are closed.