最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

multisite - Multi-Network without plugin

programmeradmin3浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

Sorry 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

发布评论

评论列表(0)

  1. 暂无评论