admin管理员组文章数量:1122846
I have a wordpress multi-site where I staged a "sandbox" site and I'm now ready to move this sandbox to the production site. I feel comfortable doing everything but for some reason the main site is un-editable.
The main site is "website"
The new site is "website/sandbox"
I basically want to change the main site to "website/old" and make the new site "website".
Any idea how to unlock the current main site so I can change the URL? I tried this already:
define('SITE_ID_CURRENT_SITE', 2);
define('BLOG_ID_CURRENT_SITE', 2);
But that didn't change anything.
I have a wordpress multi-site where I staged a "sandbox" site and I'm now ready to move this sandbox to the production site. I feel comfortable doing everything but for some reason the main site is un-editable.
The main site is "website.com"
The new site is "website.com/sandbox"
I basically want to change the main site to "website.com/old" and make the new site "website.com".
Any idea how to unlock the current main site so I can change the URL? I tried this already:
define('SITE_ID_CURRENT_SITE', 2);
define('BLOG_ID_CURRENT_SITE', 2);
But that didn't change anything.
Share Improve this question edited Jan 28, 2017 at 1:19 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Jan 27, 2017 at 22:07 DigitalMCDigitalMC 1033 bronze badges1 Answer
Reset to default 0In order for sub-directory multi-site to work, it needs to modify the mod_rewrite rule (i.e. .htaccess file). Do you simply added the two lines in the wp_config.php or crated a WordPress network as described here?
本文标签: Change Default site on wordpress multisite
版权声明:本文标题:Change Default site on wordpress multisite 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736290531a1928532.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论