Moving Wordpress 2

Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information.

Here’s round 2 of my Wordpress Move script from yesterday. It now figures out if your home address is different from your base url and if so, it strips the path off of the home address and appends it to the new base url to create a new home address. This makes the assumption that both your url and home are on the same domain. I’d be interested to know if anyone finds other uses for this or if there are any feature requests. If not, it’s serving my purposes and probably won’t go any further, but you never know.

Download: move2.zip

Installation: Just unzip the “move” directory into the root of a testing site and navigate to yourdomain/move. You can then enter a new base for your wordpress site and it will update the database quickly and easily, both url and home entries. This is most handy for people developing with OS X locally on a laptop using local IP addresses that change with your location. IP addresses are often necessary for testing in virtualization programs like VirtualBox or Parallels in PC Browsers.

Note: Remove the “move” directory before pushing the site to a production server for security reasons.

» » » » »
  1. Circle Six Blog » Blog Archive » Moving Wordpress Faster 06.04.07 / 5am

    […] New version available: Moving Wordpress 2 […]

  2. Joost de Valk 06.04.07 / 2pm

    I would be very interested if it could do copies as well… But hey, that’s something different :)

  3. brett 06.05.07 / 5am

    You mean full site copies? It can certainly assist… if you make an ftp copy of the site and an export of the database to the new location, this will make it a snap to change the database to point the new copy to the correct location. It’s nothing that can’t be done from within Wordpress before moving the site, or with a little database editing afterwards, but I do it often enough that I just wanted a faster way to get it done.

  4. Matt 06.07.07 / 9am

    This isn’t really needed, you can set blog and home URL in your wp-config.php file now, which overrides whatever is in the DB.

  5. brett 06.07.07 / 11am

    Seriously? What is the parameter for that?

  6. brett 06.07.07 / 6pm

    Nevermind, found it.

  7. Circle Six Blog » Blog Archive » Moving Wordpress Redux 06.08.07 / 8pm

    […] nothing like a comment on your blog from the creator of Wordpress to make you feel silly… It turns out my work in […]

Have your say

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




Safari hates me