How do I change the primary site on my multi site network?

I, like many developed my site one step at a time; starting with a single wordpress site, then adding some sub-sites, then a multisite network and now pro sites and domain mapping. I have that working, I think. Just a few more things to figure out before I go live.
My original site catrinasgarden.com is my own garden site. It is currently the primary site on my network. I would really like that site to just be about gardening and selling plants, but now I have it all mucked up with the network. I would really like this to be a network of garden and foodie blogs...so I would like the main site to be a kind of directory, not my garden site. The directory site might be named something like catrinasgardensites. I wouldn't mind purchasing another domain name for it. How should I go about this? I'm kinda hoping you won't say I have to start from scratch.
Thanks,
Catrina

  • Catrina

    Thank you....that is helpful, however I guess I was a little confused as to what the term "primary site" actually means. Am I right in thinking that this only changes what site shows up first when you log in? So I could make that site that I want to be primary at least show up first.
    This is what I really wanted to do. So, if I have 5 sites and site a is mysite.com, site b is b.mysite.com, site c is c.mysite.com, site d is d.mysite.com and the fifth one is mycommunity.mysite.com then what if I want to make the mycommunity site the main site. I want it to be mycommunity.com with the mysite.com being mysite.mycommunity.com. I don't want to map it to my site, I want it to be the main site. See what I mean? If I had know I was going to develop a community I would have started with it that way but I didn't know at the time.
    Any ideas short of starting over?
    Or maybe you have thoughts of why this is not necessary.
    Thanks,
    Cathy

  • Vinod Dalvi

    Hi Cathy,

    The Primary site is used as an identifier for when a user logs in. It allows access to the backend of the primary site on the user's network as described on the following page.

    https://codex.wordpress.org/Dashboard_My_Sites_Screen

    If you want to redirect the user to the specific URL after logging in then you can use the following plugin.

    https://premium.wpmudev.org/project/login-redirect/

    Ideally its not a good process to post on a thread a year old so if you have further questions then to help keep support tickets separate, could you please open a new thread for your new question https://premium.wpmudev.org/forums/#question

    You can also include reference of this thread in your newly created thread if you want to.

    This helps to prevent any confusion (for us) as I'm sure you understand. Also this might help other members looking for a similar answer. :slight_smile:

    We would be more than happy to help you on your new thread :slight_smile:

    Thanks,
    Vinod Dalvi

  • LeslieM

    I understand that this thread is old, but it is baffling that it never got resolved and still shows up on the front page of Google for "change primary multisite domain"... so for anyone who lands here from Google and is still confused , this is the tutorial I used to change my primary domain over.
    https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/

    Sometimes, just redirecting the primary login page isn't all that's needed, especially with some of the wpmudev plugins. For example, I wanted to make my "Support" plugin based on a specific domain which was not the primary install domain, but the "Support" plugin doesn't work that way! Frustrating, but I just changed my network around...

  • Andi

    This is exactly what was needed as it is very very easy to do - Thanks for that link Leslie. And I have to agree with her also concerning Google - Better give a proper answer here in that thread instead of telling people to start a new thread! Threads without solutions are already spamming the net and often google indexes exactly those unsolved one at first place. This is even much more important as some settings i.e. the "path" element are no more existing which gets mentioned in most of the older threads. So an old thread which gets constantly updated to the new settings can really help to solve the problem. I would recommend to post SOLUTIONS sticky on Top of the thread until a better solution gets posted, then get that to the top. This makes even Old threads very very useful also for SEO :wink:. Much better then having unsolved threads which frustrate people and extends the search time for them and it reuses all the old content too :slight_smile: which got cawled perhaps already since years. So what about the solution:

    So the solution is:
    1. Go to /wp-admin/network/sites.php in your Multisite
    select the new site https://mydomain.com/newsite and change the site and home URL to your "base" domain name i.e. https://mydomain.com

    2. Go into your wp-config.php file and change ONLY the number of the BLOG_ID_CURRENT_SITE to the number of your new site i.e. (2). Afterwards it will look like that:
    define( 'SITE_ID_CURRENT_SITE', 1); -> it is for backend access and should still be 1 if you like a clean overview simply don't start your Multisite with that page and always start it with the first blog (id2) :wink: Then you have a nice clean base from the default install.
    define( 'BLOG_ID_CURRENT_SITE', 2); -> it is the mainsite and used to calculate all your paths for subpages in subfolders.

    3. Next go to the old "BASE" site (id1) and you will be able to enter and change a subdomain, domain or new path-element to the URL. i.e. https://mydomain.com/base/ (before it was https://mydomain.com)

    4. Now install and use the plugin VELVET BLUES UPDATE URLS
    It is working just perfect in WordPress 4.8! (July/2017)
    https://wordpress.org/plugins/velvet-blues-update-urls/
    Netwerk install it
    Now go to all your sites and exchange the URLS to the correct ones.

    5. Go back to the Network - Your site - Settings tab and check if there is the correct path - or none in Upload Url Path - Correct it if necessary.

    6. Finally check all Settings Tabs in all pages that also here the correct URLs is in now.

    That's it and don't forget to check the sites in Frontend.

    Kind regards and enjoy your sites
    Andi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.