Multisite with path, how to change the main site


I have a network installed on my wordpress with 4 websites

  • –> Old website
  • –> New website in French
  • –> new website in english
  • –> New website in spanish

Instead of copy/pasting the contents of the new FR website onto the old website, i’d rather change the “main site” of my network and show everyone that goes to the new FR website.

2 options:

  • Either I redirect everyone to I’ve searched for ways to do that but I did not manage to implement any of the solutions. Some speak of creating a php file, uploading the plugin on the FTP, activating it and voila… but no luck.

  • I change the main site in the wp-config file and the old website on my domain becomes and the new FR website becomes

    define('DOMAIN_CURRENT_SITE', '');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

This second option seems a lot better to me. But i can’t get it to work. I’m not sure what to change in the wp-config file nor am i sure if that is the only thing to do or if anything is required.

Do you guys have any idea ?

Thanks in advance for the help

, EdouardF 2 years 2019-12-30T08:38:52-05:00 0 Answers 96 views 0

Leave an answer