admin管理员组文章数量:1410712
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 badges1 Answer
Reset to default 1Ok I actually ended up finding an answer by myself :D
Check out this blog post: http://halfelf/2014/switching-main-blog-multisite/
本文标签: wp configMultisite with pathhow to change the main site
版权声明:本文标题:wp config - Multisite with path, how to change the main site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744871868a2629675.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论