3

There are wp_blogs and wp_site tables, which seem, are preserved for ability to contain more than 1 main_site....

so, how can we make Multiple Multi-site? (as each of them were like main-site itself, with it's sub-sites...)

0

I've ended up with using such solution:

1) Created folders like:

wp-base
- wp-admin
- wp-includes
- .... all wp-php files

and I've created "symlink" that 2-folder and wp standard php files inside other folders:

my-wp-1
- wp-content & wp.config.php & htaccess
my-wp-2
- wp-content & wp.config.php & htaccess

The only thing I had to do is to use this in the top of wp-load.php:

$fold=filter_var($_SERVER['HTTP_HOST'], SANITIZE_STRING);
/** Define ABSPATH as this file's directory */
if ( ! defined( 'ABSPATH' ) ) {
    define( 'ABSPATH', dirname(dirname( __FILE__ )). "/$fold/" );
}

There seems no need of adding define( 'WP_CONTENT_DIR', __DIR__.'/wp-content' ); in wp-config.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.