How to Change the Root Site on a WordPress Network


This little problem took a while to find the answer to even if the solution is pretty simple. A WordPress Network (or multi-site) allows you to run hundreds of  independent WordPress sites from a single install. This is a great way to simplify the management of multiple sites.

I use such a set-up to run this site and I can quickly create preview sites for clients this way.

But how do you change the root blog (default site  for your network to a sub-site you have created. You might want to do this if you are developing a new version of your main site and want to make it live by switching your root site.


Thanks to this forum post the answer is straightforward.

  1. Go in to Network Admin -> Sites and edit the site you want to be the new ‘main’ domain so it’s url is (i.e. remove the subdomain or subfolder path totally). There’s a checkbox to change site and home URL.  Make sure that’s checked before you hit save.
  2. Change the define('BLOG_ID_CURRENT_SITE', 1); inside wp-config.php to the ID of the new site you want. Save it, upload it. DO NOT CHANGE SITE ID, YOU WILL BREAK THINGS.
  3. Go BACK to Network Admin -> Sites and edit the site of the ‘OLD’ main site. Edit it so it HAS a subdomain or subpath e..g. Make sure the checkbox is checked. Save it.