Musings of ErisDS
beta
ErisDS

Migrate is a script to help you move your WordPress install from one URL to another. Please read the announcement blog post for more information. This page will be updated with full details shortly.

Download

Download a zip file from GitHub. Direct link: https://github.com/ErisDS/Migrate/zipball/master

Installation and use

Please read the README on Github, detailed instructions will be added here shortly.

Comments & Bugs

Any comments or issues you have with the script, feel free to leave them here on this page, or log an issue on Github.

Contribute

You can contribute to this project via GitHub.

Comments

11 Comments to "Migrate!"
  1. 28th Jun

    passerby says:

    Thanks for this. I’ve just tried it.

    Unable to go beyond the first step:

    Current Url http://127.0.0.1/~dev/wordpress
    Replacement Url http://virtualhost.dev/wordpress

    Error: Your current URL (http://127.0.0.1/~misc/wordpress) is not a valid URL.

    But it is valid and I can navigate to it just fine.

    I tried to migrate to a virtual host (which resolves to localhost) from where I ran the migrate script

    http://virtualhost.dev/wordpress/migrate.php

    Have you tested in a similar localhost scenario please? What could be wrong?

  2. 31st Aug

    gearu says:

    i have the same problem.

    I am migrating from my dev install:
    http://localhost/mywebsite

    to a live site:
    http://www.mywebsite.com

    i get the “is not a valid URL for the local host URL – i presume this is becuase it does not contain “www” – can the script be updated to handle localhost?

  3. 31st Aug

    ErisDS says:

    Hi Gearu,
    The invalid message is not to do with www’s as I don’t use them :)
    It is instead because the script checks for a valid URL, localhost is not a valid url because it doesn’t have a TLD

    I normally setup aliases for all of my development environments so something like mywebsite.dev which is why this script works for me (and other people who work in a similar way)
    However, it is entirely valid to use localhost in development so I guess the script should support it!

    I will upload an updated version asap, in the meantime you can change the “checkURL” function to just return true.

    Apologies for the incovenience!

    Eris

  4. 31st Aug

    gearu says:

    no problem, thanks very much for sharing this script :) could you post a comment against this when you have updated the script so that i can grab a copy of the new one? Thanks.

  5. 4th Sep

    ErisDS says:

    Hi Gearu,

    I have now updated the migrate plugin on github. Let me know if you have any other troubles.

    Eris

  6. WordPress: Migrate! Easy WordPress Site Migration | Musings of ErisDS

    4th Sep

    WordPress: Migrate! Easy WordPress Site Migration | Musings of ErisDS pinged back:

    [...] developed a script to help change the URL of a WordPress installation. This script, called Migrate! is now available to [...]

  7. 17th Mar

    T says:

    This script has helped out countless times, and couldn’t be easier to use. Hope you continue to maintain it on GitHub!

  8. 12th Apr

    Teryk says:

    Hi ErisDS,

    Thanks for this great script.
    I found a “bug”. If the blog I want to migrate is in https it concatenates http:// with the URL entered.

    Cheers,

    Teryk

  9. 20th Apr

    Teryk says:

    I sent you a pull request with a fix and a little refactoring.
    Hope it helps !

  10. How to move your WordPress website | Michael Gunner

    10th May

    How to move your WordPress website | Michael Gunner pinged back:

    [...] Upload Erin’s migrate script and run it according to the instructions found [...]

  11. 6th Aug

    DUDE says:

    Thank you SO MUCH! :D

Add your thoughts

  • XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>