• Hello
    i have a network with a main site and two subsites (not a subdomain but a subfolder)
    i want to create a 3rd subsite where i’m gonna work on a new version of the main site and then migrate the 3rd subsite to the main one without loosing the 2 other subsites

    if i do it this way :

    will it preserve the 2 subsites ?

    in my multisites, when i go to setting –> General i don’t have WordPress Adresse (URL) and Site Adresse (URL), is it normal ?

    thank you

    • This topic was modified 5 years, 8 months ago by legaston.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I did not watch that vid but it sounds like it’s for moving single sites, not multisite “sites”. You can develop a child theme on any other site and then activate it on the main site once it’s ready. Site content can be moved by simply renaming tables in phpMyAdmin. Rename the current main site tables you need to replace to a non-WP name like “backup_posts” (from “wp_posts” or similar, not all main site tables are to be renamed). Sub site tables are typically “wp_3_posts”, etc. Rename those tables to the proper equivalent main site table (“wp_posts”). Do not do so for the options table though, there are important settings in the main site table that do not exist in sub site tables. This means customizer settings among other things will not be copied over. While you could copy over individual option values as needed, it’s safer to simply set the desired customizer and other options as needed through the site’s back end.

    Messing with the DB with phpMyAdmin is inherently risky business. While just renaming tables is relatively safe and easy to revert, please export a full backup of the WP DB before attempting any changes.

    You must replace the sub site tables you renamed with something equivalent. Either duplicate tables from a newly created, nearly empty sub site, or rename the original main site tables from “backup_posts” to “wp_3_posts” or whatever is applicable to your situation.

    It’s normal for multisite to hide the overall site and home URL settings. You can access them through the hidden /wp-admin/options.php admin screen. All of the hundreds of options are listed alphabetically, though it’s risky to change some values through this page. Changing the main site’s URL is more involved than simply changing these two settings.

Viewing 1 replies (of 1 total)

The topic ‘subsite(subfolder) migration to root’ is closed to new replies.