Home

Awesome

Created by Kaspars Dambis konstruktors.com

Important:

Network Setup (Production):

Network Setup (Development):

You need to put this into your dev wp-config.php right below the Multisite related constants:

// (int) blog_id => (string) blog_path

$dev_sites = array(
	1 => '', // Network home
	2 => 'extranet',
	3 => 'intranet'
);

define('WP_CONTENT_URL', 'http://localhost/example-dev/public/wp-content');

$current_site = new stdClass;
$current_site->id = 1;
$current_site->site_id = 1;
$current_site->domain = DOMAIN_CURRENT_SITE;
$current_site->path = PATH_CURRENT_SITE;
$current_site->cookie_domain = DOMAIN_CURRENT_SITE;

foreach ( $dev_sites as $site_id => $folder )
	if ( strstr( $_SERVER['REQUEST_URI'], '/' . $folder . '/' ) )
		$current_site->blog_id = $site_id;

if ( ! $current_site->blog_id )
	$current_site->blog_id = 1;

$current_blog = $current_site;