Change wordpress Multisite default site from side id 1 to side id 2

I have a multsite installation with canonical setup like site1.domain.com and site2.domain.com etc. How do I change the default root site from site 1 to site 2?

I tried to change these two values in wp-config to 5 instead of 1 and there was no effect:

define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

Is there a tutorial out to do this?

2 Answers
2

Current site Id defines the primary network id. You can have more than one network if you use a multi-network plugin. Current blog id defines the primary blog within the primary network. To change the main blog to ‘2’ (if you only have one network) you want your defines like this:

define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 2 );

Leave a Comment