I'm having some trouble: I have an MSM-site, on both staging- and live-servers. I'm developing the secondary site, and have just moved to the live-server. Weird thing is it cannot connect to db. My bootstrapped config has this if-statement:
if($_SERVER['HTTP_HOST'] == 'www.domain.com' || $_SERVER['HTTP_HOST'] == 'en.domain.com')
This doesn't seem to evaluate properly, because ExpressionEngine can't load site preferences. So to test I've created a simple php file on the subdomain which just echoes $_SERVER['HTTP_HOST']
, and that outputs en.domain.com. So why would this evaluate properly in vanille PHP but not in ExpressionEngine? Any thoughts?