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…)
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…)
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.