Support » Networking WordPress » Moving Multisite, what a disaster.

  • I’m not sure how moving a simple site from to can become so damned complicated but for the life of me I cannot fathom what the hell is going on.

    Things I have tried.

    Installing new copy of WordPress on dev2, setting up multisite network, copying database from original ensuring the replace all instances of to Getting told the damn thing cannot connect to the database, while in the same error being told that it can’t find certain blogs? How is it telling me it cannot connect to the database while telling me that it can?

    Fine, whatever, find a way to fix that error.

    Do another copy, delete wp_blogs, delete wp_site, delete wp_sitemeta, this fixes the inability to turn on network. Re-enable network site. Copy/Paste code into wp-config

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', '');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    also htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    Allow from all

    It finds the initial site at blogid 1. I do another copy from of wp_blogs, wp_blog_versions, wp_site, wp_sitemeta.

    FINALLY WordPress can see the other sites, I can even visit their home pages, everything is broken as hell but one thing at a time, try to visit other site dashboards….

    The page isn’t working redirected you too many times.
    Try clearing your cookies.

    wtf? Fine so I clear all cookies and cache, still no dice. try adding
    define('RELOCATE',true); to wp-admin, no good.

    I’m at my wits end, every table looks correct, there is no instance of the original domain in the database, what else is holding me back from getting to the dashboards for the other sites on the network?

    The blog ID’s check out, adding new sites gives me the same redirect error.

    How is moving a multisite network such a pain in the ass?

    I should note that and are identical servers. the www at the front is some weird crap our network admin setup via the DNS, I don’t know why, it should affect this though especially considering is working perfectly fine.

    • This topic was modified 3 years, 1 month ago by Jason.
    • This topic was modified 3 years, 1 month ago by Jason.
Viewing 2 replies - 1 through 2 (of 2 total)
  • For future anything about multisite should go in this board for more prompt support.

    I work for an Enterprise and we have multiple WP systems with multiple tiers (dev, test, stage, and production). I have copied and migrated production to dev/test/stage often – to It is a very simple process. I do it manually though I know there are plugins that will do some of the work.
    1) export production database
    2) copy production filesystem (WP core, themes, assets)
    3) modify production database – find, replace with
    4) import production database to dev/test/stage database
    5) copy production filesystem to dev/test/stage
    6) modify any files that contains system specific configurations. For us this is only wp-config.php, like database and domain parameters

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Moving Multisite, what a disaster.’ is closed to new replies.