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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

In 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