Changing the domain name is fairly easy but swapping one site for another site as primary is right involved. As far as I know, there’s no plugin. It can be a perilous task… I have done it.
My advice would be to not do that… I use a dedicated domain name for my primary network site. With domain mapping built-in you can use a subdomain even as your primary… I like calling my network primaries as ‘NOC’ dot domain name now.
Anyway, here’s a StackExchange answer about that process if you wish to try it.
https://wordpress.stackexchange.com/questions/232038/switching-primary-site-in-wordpress-multisite/235578
Read up on it well and do a backup first and consider may be using a new multisite instead, just changing the domain name instead, and/or migrating the site using the primary to a subsite instead.
-
This reply was modified 5 years, 8 months ago by
JNashHawkins.
I tried to create a new multisite using Siteground, but for some reason even though I chose the option to make it a multisite, I don’t see the option to add more subsites. The entire network section is gone on wp.
I was hoping that if I create a new multisite, I could later export my old site on the previous network into this new network as a subsite.
If you want to change the primary domain of your WordPress multisite installation, there are 5 values to change. There is no need to perform a database dump. This is actually frowned upon, as WordPress stores serialized data in the database, and altering it can cause corruption
Thanks you for the reply. Do you know what these 5 values are that need to be changed? I’ve yet to find a proper step by step process online.