Sandbox Relocator

Plugin Status Stable
Author Ben XO Version 0.2
Plugin Home Visit Author Homepage Visit
Download Visit Plugin License GPL
Description :
Never change SITEURL and HOME again. Work easily in a sandbox or staged environment.


Do you work on your website in a staged environment or sandbox? I do! I am always tinkering with new versions of my sites on a local server before deploying them to ‘live’.

WordPress, however, is very much tied to the URL you install it on. There are two options in the database, ’siteurl’ and ‘home’, that refer to the URL of your website. The upshot of this is that all the links in the sandboxed versions of my site keep pointing back to the live site. What a pain in the bum.

There are a few ways to deal with this. One of them is to define ‘RELOCATE’ in your wp-config.php. Then, when you visit wp-login.php, ’siteurl’ is changed to the new address. However, this doesn’t change ‘home’, so it’s only half the problem solved.

Another solution to the problem is to define ‘WP_SITEURL’ and ‘WP_HOME’ in your wp-config.php, which overrides whatever’s in the admin page. This certainly does the job, although you’ll have to have different versions of these defines in all of your staged environments.

So, here’s MY solution to the problem: a plugin which does all the leg work for you. Enable it, add ‘RELOCATE’ to your wp-config.php, and forget about it: all your sandboxes will magically work!

Similar Plugins

Leave a Reply