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 );

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

  • This option does no exist any longer
    – checklist
    Jul 13, 2017 at 10:00
  • @checklist Just file an edit and fix the answer. That's totally ok, you will even receive 2+ upon accepted edited.
    – kaiser
    Jul 13, 2017 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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