WordPress Multisite subdirectories not allowed on new install?

I've just installed a fresh install of WordPress and before doing anything else I've tried to setup a multisit

I've just installed a fresh install of WordPress and before doing anything else I've tried to setup a multisite, which I would like to do with subdirectories.

But when I click on Network Setup I get the notification:

Because your installation is not new, the sites in your WordPress network must use sub-domains. The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.

Can anyone tell me what I'm doing wrong, or what I need to change to allow subdirectories?

I've just installed a fresh install of WordPress and before doing anything else I've tried to setup a multisite, which I would like to do with subdirectories.

But when I click on Network Setup I get the notification:

Because your installation is not new, the sites in your WordPress network must use sub-domains. The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.

Can anyone tell me what I'm doing wrong, or what I need to change to allow subdirectories?

Share Improve this question edited Jul 7, 2018 at 11:26 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Jul 7, 2018 at 9:29 LukeJonGibsonLukeJonGibson 1278 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 3

You don't need to do anything just past this code in your activated theme's functions.php

add_filter( 'allow_subdirectory_install', '__return_true' );

This thread might be helpful.

In essence: try to delete sample post and page.

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

相关推荐

  • WordPress Multisite subdirectories not allowed on new install?

    I've just installed a fresh install of WordPress and before doing anything else I've tried to setup a multisit

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信