scarstens
8/23/2017 - 3:13 AM

multisite-top-level-domain-config

multisite-top-level-domain-config

<?php
if (!empty($_SERVER['HTTP_HOST']))
{
	$site = get_site_by_path(strtolower($_SERVER['HTTP_HOST']), '/');
	define('COOKIE_DOMAIN', '.'.$site->domain);
}