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:
- 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?
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:
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.
You can change link by WORDPRESS SEARCH AND REPLACE TOOL wonderful tool, also WordPress recommend this tool, you can download by following url
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/