• Home
  • Work
  • Blog
  • Contact

Our WordPress “Change URL” Plugin

May 19th, 2010 by Chris in Development, WordPress | 13 Comments

We do a lot of WordPress installs for clients when we set up new websites for them. One hassle we always go through is setting up the development site as a sub-domain or as a complete other domain, and then having to move it to the new domain. Since WordPress uses absolute URLs in posts, links, etc., editing by hand is definitely not an option. We also couldn’t find a really good solution, so I wrote a plugin that will go through all of your posts, pages, options and guids and update your old domain to your new domain!

Directions

Just download the plugin, unzip (if necessary) and install to your wp-content/plugins directory. Activate in your plugin panel inside your WordPress panel. Under Settings is a new option, ‘Change WP URL’. Just follow the instructions!

Download the plugin at WordPress

Download Change WP URL (we’re waiting for WP to approve the plugin so we can get it in the directory)

13 Responses to “Our WordPress “Change URL” Plugin”

  1. Change WP URL Plugin for WordPress:
    October 2, 2010 at 5:48 am

    [...] WP URL Plugin for WordPress 2. Oktober 2010 | Autor KHK Das  Change WP URL Plugin for WordPress von Chris Nowak passt bei einem Domain-Umzug des Blogs die URL´´s, Links etc. an. Verwandte [...]

    October 2, 2010 at 5:48 am
  2. Change WP URL Plugin for WordPress:
    October 2, 2010 at 5:51 am

    [...] WP URL Plugin for WordPress | 2. Oktober 2010 | Autor: Karl-Heinz Das  Change WP URL Plugin for WordPress von Chris Nowak passt bei einem Domain-Umzug des Blogs die URL´´s, Links etc. an. Das PLugin [...]

    October 2, 2010 at 5:51 am
  3. Einfacher Blogumzug mit dem Change WP URL Plugin für WordPress:
    October 2, 2010 at 6:52 am

    [...] Change WP URL Plugin for WordPress von Chris Nowak passt bei einem Domain-Umzug des Blogs die URL´s, die Links etc. an. Das PLugin [...]

    October 2, 2010 at 6:52 am
  4. Christin:
    October 5, 2010 at 6:25 am

    Hi Chris,

    Love the idea of you plugin but unfortunately it’s produces an error when trying to activate it.

    My WP solution is setup as the network version, and uses IIS for the webserver, and the odd basic plugin.

    ERROR:

    Parse error: syntax error, unexpected $end in D:\Websites\givemelife.co.nz\wp-content\plugins\change-wp-url\change-wp-url.php on line 94

    ok all the best
    Christin

    October 5, 2010 at 6:25 am
    • dani:
      November 10, 2010 at 2:11 am

      same problem

      November 10, 2010 at 2:11 am
  5. Chris:
    November 18, 2010 at 11:02 am

    Yeah, I don’t think that it will work out of the box on a network or multi-site setup because there are multiple “siteurl’s”. I’ve tried on IIS with a normal (one domain) install and was able to use it, so if it’s happening there, please let me know.

    November 18, 2010 at 11:02 am
  6. elvin:
    November 27, 2010 at 4:03 am

    plugin is faulty. It needs PHP to have short_tags enabled – no good.

    i’ve got plugin to work when i changed in plugin’s change-wp-url.php following:

    to

    and

    <? to <?php

    November 27, 2010 at 4:03 am
  7. elvin:
    November 27, 2010 at 4:05 am

    ok, comment ate my strings there.

    <?=$oldurl;?>
    to
    <?php echo $oldurl;?>

    November 27, 2010 at 4:05 am
    • Chris:
      November 29, 2010 at 12:28 pm

      The next version will correct this. Thanks.

      November 29, 2010 at 12:28 pm
  8. Josh Fialkoff:
    November 29, 2010 at 10:38 am

    Hi,

    I need to fix some links on pages and posts that still point to the testing server.

    But the hitch is that the new site is already live.

    Can I use this plugin to do that?

    If so, what is the safest way to do this?

    Thanks for your help!

    -Josh

    November 29, 2010 at 10:38 am
    • Chris:
      November 29, 2010 at 12:29 pm

      You probably shouldn’t use the plugin just to fix some old permalinks in pages, but there are a couple of SQL statements you could use to fix this. I emailed them to you.

      November 29, 2010 at 12:29 pm
  9. Creative:
    January 26, 2011 at 11:22 am

    I have a huge website, which I just changed domain name. EG:

    http://oldwebsite.com to http://newwebsite.com

    The images of the website are pointing to the old website. Would this plugging work for that? So that the images will show to be under the new domain name?

    I have not changed the server, or the location of any file.

    Please let me know,

    Thanks,

    January 26, 2011 at 11:22 am
    • Chris:
      January 26, 2011 at 11:31 am

      Yes it will update the images

      January 26, 2011 at 11:31 am

Tags

  • Business
  • Community
  • Development
  • Illustrations
  • WordPress
  • Work
« “Octolove”
Typeface documentary at UL »

p 502.220.4791
f 502.415.7293
info@karmaprogressive.com

8510 Raintree Drive
Louisville, KY 40220

  • Home
  • Work
  • Blog
  • Contact
  • You guys rock »
  • Our Coda “Tabber” plugin »
  • Customer Service: DMV vs. The Apple Store »
  • Facebook
  • Twitter
  • Linked In
  • Blog