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

[eluser]Iverson[/eluser]
If I'm understanding the question correctly, there's no reason to touch the controllers. If you just need exampleA.com and exampleB.com to be the exact same thing (database included), all you need to do is go inside the config.php and use:

Code:
$host = $_SERVER['SERVER_NAME'];    // resolves to www.exampleA.com OR www.exampleB.com
$config['base_url']    = "http://" . $host . '/';

I use this method currently on a site.


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