Implement Multisite in wordpress in sub directories

I am trying to implement multisite so that I can add several other blogs.

I added define('WP_ALLOW_MULTISITE', true); line of code in wp-config.php file under define('WPLANG', '');

Read More

When I look at the configure network panel I get this message:

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

I want all my blogs to be in sub directories.

Like : http://abcd.com/site1, http://abcd.com/site2, http://abcd.com/site3

What should I do so that I can proceed with installing the multisite option using sub directories?

Related posts

Leave a Reply

2 comments

  1. Hi Try adding the following code in your themes functions.php . It w

    add_filter( 'allow_subdirectory_install',
    create_function( '', 'return true;' )
    );
    

    That’s it. Now reload the Network page and you will see option to choose between sub-domain and sub-directory. Once done remove the code from functions.php.

    Source tip credit