WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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

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

share|improve this answer

Your Answer


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.