wp config - Multisite with path, how to change the main site

I have a network installed on my wordpress with 4 websitesdomainOld websitedomainfrNew website in Frenchdomainen

I have a network installed on my wordpress with 4 websites

  • domain --> Old website
  • domain/fr --> New website in French
  • domain/en --> new website in english
  • domain/es --> 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 domain the new FR website.

2 options:

  • Either I redirect everyone to domain/fr. 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 domain/oldFR and the new FR website becomes domain.

    define('DOMAIN_CURRENT_SITE', 'domain');
    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

I have a network installed on my wordpress with 4 websites

  • domain --> Old website
  • domain/fr --> New website in French
  • domain/en --> new website in english
  • domain/es --> 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 domain the new FR website.

2 options:

  • Either I redirect everyone to domain/fr. 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 domain/oldFR and the new FR website becomes domain.

    define('DOMAIN_CURRENT_SITE', 'domain');
    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

Share Improve this question asked Jun 3, 2015 at 22:12 EdouardFEdouardF 411 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Ok I actually ended up finding an answer by myself :D

Check out this blog post: http://halfelf/2014/switching-main-blog-multisite/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744871868a4598307.html

相关推荐

  • wp config - Multisite with path, how to change the main site

    I have a network installed on my wordpress with 4 websitesdomainOld websitedomainfrNew website in Frenchdomainen

    1天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信