Here's my scenario:
I have a development zone with a standard WordPress installation (dev.domain.com/project). When it comes time to showing work to clients, I use version control to copy the dev installation to a beta zone (beta.domain.com/project). So, a pretty standard setup. They share the same database.
However, using this method in wp-config.php on the beta zone to change the site and home URL doesn't work:
Because it alters the value in the database, meaning that when I go to load the dev zone, it now redirects to the beta zone. This is what happens for pretty much all methods described here.
So, what is the proper way to have two separate installations with different URL's share the same database? I know of the WP DB Migrate plugin, which I've already used, but in this case I want the databases to be shared.