• Hi

    I trying to setup a multisite network + multisite language switcher. For each language a separate site.
    After the network setup I have now the base path and 2 other sites for the languages. So 3 sites for only 2 languages
    ‘/’
    /en/
    /nl/

    How can I make ‘/nl/’ as my default site and remove the base ‘/’ site?

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This actually isn’t that hard to do, but it has to be done in a correct order.

    First you have to go to Network Dashboard > Sites and edit the site you want to be the main site.

    ?Change this to look like it’s your main site

    ?Make certain you leave ‘Update siteurl and home as well’ checked! Then go to your wp-config.php, look for this line:

    define('BLOG_ID_CURRENT_SITE', 1);

    Change it to the site ID you want to use as your main site. For example, I want site #3, aka, sample, to become my main site. Change it and save it.

    Then you have to go back to your Sites and edit the old main site. Give it’s path a new name and press save, making sure you keep that checkbox checked.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove primary site’ is closed to new replies.