Welcome Guest, Not a member yet? Register   Sign In
Mulitple sites, single application
#1

[eluser]Animas[/eluser]
Yes, I can use single CI for multiple apps. But my need is a bit different. I have sites site1.com, site2.com and site3.com. All sites will show same content that means will use same(single) application (parking purpose). But the problem is in app's config.php we need to define $config['base_url']. Can I use multiple $config['base_url'] as below?
Code:
$config['base_url']="http://www.site1.com/";
$config['base_url']="http://www.site2.com/";
$config['base_url']="http://www.site3.com/";
#2

[eluser]xwero[/eluser]
What makes the sites different when they all share the same content??

If you want to support different base urls automagically you can check this.
#3

[eluser]Animas[/eluser]
Thanks. Working.




Theme © iAndrew 2016 - Forum software by © MyBB