Foren / Cotonti / Support / muilti domain

GHengeveld
#30358 1. August 2011, 20:15

You can try this:

PHP
1
$cfg['mainurl'] = 'http://' . $_SERVER['HTTP_HOST'];

I wouldn't recommend it though. Also make sure you have no 'domain for cookies' configured in admin->config->main so it will automatically pick the right domain name.