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...)
Share Improve this question edited Feb 25, 2017 at 6:49 T.Todua asked Feb 23, 2017 at 20:15 T.ToduaT.Todua 5,8809 gold badges52 silver badges81 bronze badges 4- What will be your reason for a Multiple Multisite? Can you please elaborate a give a scenario with sitemaps as an edit to your post? – nyedidikeke Commented Feb 24, 2017 at 9:25
- there should not be a problem doing that, and there are plugins for it. Not sure if core already has UI to control it, but it is supported in the API IIRC – Mark Kaplun Commented Feb 25, 2017 at 7:39
- 1 WP Multi Network – Nathan Johnson Commented Feb 25, 2017 at 14:29
- Found answer here: wordpress.stackexchange/questions/16934/… – T.Todua Commented Apr 11, 2017 at 15:51
1 Answer
Reset to default 0I'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.