Moving Wordpress Faster

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

Move Site ScreenshotI’ve got a new script, but it has a very limited usage. I built it because I develop a lot of sites on my laptop using a local testing environment. In order to test my sites in VirtualBox with Internet Explorer, I have to use my local IP as the url for my Wordpress sites. Which means I end up changing the url and home address of the sites pretty often, sometimes directly through mySQL after I’ve already switched location. So here’s my solution…

It’s a very simple script that runs a quick check on an entered url and then switches lines 1 and 40 in the database that is configured for the site that the script resides in. All you have to do is download and unzip the file at the end of this post. You should end up with a directory called “move”. Put it in the root directory of the site (the same directory as wp-content, but not IN wp-content). Then just navigate to yourcurrentdomain/move and enter a new url. The http:// part is optional, it will add it if you don’t.

The script also serves a purpose in moving sites to new servers. If you can access the domain and have the wp-config.php file set up, then you can use the script, whether Wordpress is functioning or not. Consider it a rescue script.

Beyond that, and beyond people like me that just need a convenient way to switch domains frequently, this may not serve much use. But I thought I’d share it, just in case ;).

BTW, I feel like I shouldn’t need to say this but I will: don’t upload this script to your server and leave it there. It’s designed to be used during a testing phase of a website and absolutely should not be included in the final production version.

New version available: Moving Wordpress 2

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

    […] 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 […]

  2. crawlspace|media 06.05.07 / 8pm

    […] Moving Wordpress Faster (tags: wordpress development scripts) […]

  3. Blog Roundup for the 3rd of June 2007 :: Christopher Ross 10.26.08 / 7pm

    […] was gratifying today. As usual ia.jp?s us$2500 wordpress theme is good. I enjoyed Moving Wordpress Faster. I think Upgrading WordPress is […]

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