Welcome Guest, Not a member yet? Register   Sign In
pointing multiple domains to same instance of CI
#4

[eluser]Colin Williams[/eluser]
Either set your base_url to "/" or do the same check I did above

Code:
$check_host = $_SERVER['SERVER_NAME'];

$config['base_url'] = "http://domain1.com/";
if ($check_host == 'domain2.com')
{
   $config['base_url'] = "http://domain2.com/";
}


Messages In This Thread
pointing multiple domains to same instance of CI - by El Forum - 10-06-2008, 09:23 PM
pointing multiple domains to same instance of CI - by El Forum - 10-06-2008, 11:47 PM
pointing multiple domains to same instance of CI - by El Forum - 10-06-2008, 11:56 PM
pointing multiple domains to same instance of CI - by El Forum - 10-07-2008, 12:10 AM
pointing multiple domains to same instance of CI - by El Forum - 10-07-2008, 01:26 AM
pointing multiple domains to same instance of CI - by El Forum - 06-29-2009, 09:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB