Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

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 );
share|improve this answer
add comment

Go to Dashboard » My Sites and change the site in the drop down.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.