[wp-hackers] How to sync/mirror 2 WP multisite installs using one database?
Dion Hulse (dd32)
wordpress at dd32.id.au
Fri May 27 08:53:08 UTC 2011
Are they using Subdomains? Sub Directories?, or Mapped domains?
The way you go about it is going to depend on that.
My suggestion is that you set it up for the private site, and setup a
sunrise.php dropin to "spoof" the private url's on the public domain.. then
add your various filters to site_url, etc to replace private with public.
You can block wp-admin/wp-login.php in the sunrise too I believe.
You can probably do it the other way around, using sunrise.php for the
private site, and having it setup for the public site, But I thought spoof
the one with the lesser changes.. This way you don't have to affect the
This is all theoretical, I've not had to do it, and I doubt many others will
have.. the closest i've seen to what you're asking for, is 2 seperate
databases, and the posts/terms/taxonomy tables being sync'd accross.. The
sites table was different on both servers for their individual subdomains.
there was some replacing during the sync for the admin subdomain to the
public subdomains.. I didn't play with the config, just fix a few plugin
issues.. but I do believe they were having constant data sync issues..
On 27 May 2011 18:46, Claudio Simeone <mrbrog at gmail.com> wrote:
> 2011/5/27 Andrew Nacin <wp at andrewnacin.com>:
> > But why two domains? That's a recipe for disaster.
> I know that, but I cannot modify this configuration because it is a
> big academic institution with its policies, so I have to work on this.
> Maybe in the future I can suggest to switch to one WP install with
> HyperDB, but at the moment they cannot change this configuration.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers