Moving Multisite, what a disaster.
-
I’m not sure how moving a simple site from https://www.dev.blah.com to https://www.dev2.blah.com 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 dev.blah.com to dev2.blah.com. 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', 'www.dev2.blah.com'); 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 dev.blah.com 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 https://www.dev2.blah.com page isn’t working
https://www.dev2.blah.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTSwtf? 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 dev.blah.com 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 https://www.dev.blah.com and https://www.dev2.blah.com 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 https://www.dev.blah.com is working perfectly fine.
- The topic ‘Moving Multisite, what a disaster.’ is closed to new replies.