Looking for a way to enable the Multi-Network feature without the WP Multi Network plugin. Essentially, I'm running into some errors with it where my subsites can't be accessed, so I wanted to see if there was an alternative way to enable the feature.
Looking for a way to enable the Multi-Network feature without the WP Multi Network plugin. Essentially, I'm running into some errors with it where my subsites can't be accessed, so I wanted to see if there was an alternative way to enable the feature.
Share Improve this question asked Jun 12, 2019 at 12:13 Creative CacheCreative Cache 34 bronze badges 2- Check this link this may help you: premium.wpmudev/blog/network-of-multisite-networks – Bhupen Commented Jun 12, 2019 at 12:53
- I did follow through this tutorial when I installed the plugin. Unfortunately, all my subsites in any network besides my main network produce a 404 for the dashboard and the site itself. – Creative Cache Commented Jun 12, 2019 at 12:59
1 Answer
Reset to default 0Sorry for inconvenience caused and you are looking for multi network feature without plugin so you need to do some stuff on code to access sub sites:
// Multisite define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'PATH_CURRENT_SITE', '/' );
define( 'DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST'] );
// Likely not needed anymore (your config may vary) //define( 'SITE_ID_CURRENT_SITE', 1 );
//define( 'BLOG_ID_CURRENT_SITE', 1 );
// Uncomment and change to a URL to funnel no-site-found requests to //define( 'NOBLOGREDIRECT', '/404/' );
/** * These are purposely set for maximum compliance with multisite and * multinetwork. Your config may vary.
*/ define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );
define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] );
For maximum flexibility, use something like this above