Duplicate single site from a multisite installation
-
Hi,
I have a local multisite installation and wish to duplicate only one of the ‘subsites’ to a live server. I.e. the root URL is [local_inst] and the subsites are siteX.[local_inst] where X = 1 .. N. Let’s say I wish to duplicate only site4.[local_inst] to [live_server]/test4, not the whole multisite.
Is such a thing possible? If yes, what’s the proper procedure?
So far I did the following. In site4.[local_inst] I created a package using Developer Version of Duplicator (as advised in another thread), uploaded to ‘test4’ subfolder of the ‘public_html’ on live server and ran installer.php. Steps 1 and 2 completed (almost) successfully, afaict. However, in step 3 (Test) some of the four final steps (Resave Permalinks, Test Entire Site) link to [live_server]/test4. But, when I click, I’m redirected to [local_inst]. Btw, there are no reported deploy/update errors or warnings.
My hypothesis is that this happens because when the installer runs, it rewrites instances of site4.[local_inst] to [live_server]/test4, however, [local_inst] is left unmodified. I tried to locate any mention of [local_inst] in all the php files and the only one I found is in ‘wp-config.php’:
define( ‘DOMAIN_CURRENT_SITE’, [local_inst]);
I tried to a) comment it out and b) rewrite to:
define( ‘DOMAIN_CURRENT_SITE’, [live_server]/test4);
but in both cases to no avail.
I guess it is still somewhere in the database…?Any advice would be very appreciated. Thanks.
- The topic ‘Duplicate single site from a multisite installation’ is closed to new replies.