Page 1 of 1

Specifying more than one domains in config file

Posted: Thu Nov 29, 2012 1:03 pm
by georgechr
Hello

I have one question if anyone can answer me.

I have a website built with CMS made simple and i want i have registered 2 domains for it.

In config.php,
$config['root_url'] = 'http://www.xxxxx.com';
i can only use one domain in this line. How can i add my other domain here?

Thank you in advance

Re: Specifying more than one domains in config file

Posted: Thu Nov 29, 2012 2:22 pm
by calguy1000
CMSMS does not handle multi-domains or multiple sites with one install.

Re: Specifying more than one domains in config file

Posted: Thu Nov 29, 2012 2:35 pm
by georgechr
Thanks for the reply.

Thats too bad. I guess i am gonna have to live with one main domain.

Thanks

Re: Specifying more than one domains in config file

Posted: Thu Nov 29, 2012 11:01 pm
by applejack
Yes you can just use

$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'];

Re: Specifying more than one domains in config file

Posted: Fri Nov 30, 2012 8:39 am
by georgechr
applejack wrote:Yes you can just use

$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'];
can you please show an example on how to use this?

Re: Specifying more than one domains in config file

Posted: Fri Nov 30, 2012 12:29 pm
by applejack
You just use it instead of the actual domain name. How both domains are set up on the server is an entirely different matter.