Welcome Guest, Not a member yet? Register   Sign In
2 differents domains parked to the same website
#6

[eluser]Arjen van Bochoven[/eluser]
[quote author="treehousetim" date="1233675787"][quote author="xzela" date="1233639014"]I have not tested this however it may work.

You could try this:
Code:
$config['base_url'] = "http://" . $_SERVER['HTTP_HOST'];
[/quote]

be careful if you're going to be using https[/quote]

Or add an 's' to the protocol part of the uri if you're getting an https request:

Code:
$config['base_url'] = "http" . ($_SERVER['SERVER_PORT'] == 443 ? 's' : '') . "://" . $_SERVER['HTTP_HOST'];

Arjen


Messages In This Thread
2 differents domains parked to the same website - by El Forum - 02-02-2009, 04:49 PM
2 differents domains parked to the same website - by El Forum - 02-02-2009, 05:30 PM
2 differents domains parked to the same website - by El Forum - 02-03-2009, 03:09 AM
2 differents domains parked to the same website - by El Forum - 02-03-2009, 03:43 AM
2 differents domains parked to the same website - by El Forum - 02-03-2009, 03:49 AM
2 differents domains parked to the same website - by El Forum - 02-03-2009, 06:20 AM
2 differents domains parked to the same website - by El Forum - 02-03-2009, 08:01 AM
2 differents domains parked to the same website - by El Forum - 02-04-2009, 12:15 AM
2 differents domains parked to the same website - by El Forum - 02-04-2009, 12:20 AM
2 differents domains parked to the same website - by El Forum - 02-04-2009, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB