Our WordPress “Change URL” Plugin
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)
[...] 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 [...]
[...] 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 [...]
[...] 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 [...]
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
same problem
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.
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
ok, comment ate my strings there.
<?=$oldurl;?>
to
<?php echo $oldurl;?>
The next version will correct this. Thanks.
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
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.
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,
Yes it will update the images