Migrate helps to move WordPress installations between URLs, for example between a development and production URL, or between domain names.
At this time, the Migrate is only a script, rather than a plugin so that it can be run to correct database problems after a site has been moved.
- After moving your WordPress install (files and database) to a new url
- Place the script
migrate.phpin the root folder of your WordPress installation (at it's new location) at the same level as wp-config.php.
- Navigate to yournewurl.com/migrate.php
- Fill out the "Your current URL" field with the orignal URL at which you installed WordPress
- Fill out the "Your replacement URL" field with the new URL that you want WordPress to sit under
- Press "Continue (Step 2)"
- The information you entered will be repeated back to you, along with some information about your WordPress install and what is going to be changed.
- If you are happy the information is correct, check the confirmation checkbox and press "Lets do this!"
- The script will output details of what has been changed, and your WordPress install should now work correctly
During Step 2 of the process, the script checks to see if the new URL matches the server URL where the migrate.php script is sitting. If they don't match the script produces a warning. This is because in most cases they should be the same, and this warning will hopefully ward off unwanted spelling errors.
You can run the script as many times as you like and it will not cause any unwanted problems, to get it to work you only need to make sure that the "from" or "current" URL is correct. If it isn't correct, nothing bad will happen! The script does exactly the same thing each time it is run, therefore if you want to test it by changing your WordPress install to a dummy URL and back again, you can :)
For more details please see the blog post at: hannah.wf/migrate-announcement
Feel free to raise bugs and open PRs. Try to keep to the existing code style. If you're interested in becoming a committer drop me a message.
- Version 0.0.4
- Bugfix / support for https:// thanks to Bteryk