Specifying more than one domains in config file

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
georgechr
Forum Members
Forum Members
Posts: 96
Joined: Tue Sep 13, 2011 6:02 am

Specifying more than one domains in config file

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Specifying more than one domains in config file

Post by calguy1000 »

CMSMS does not handle multi-domains or multiple sites with one install.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
georgechr
Forum Members
Forum Members
Posts: 96
Joined: Tue Sep 13, 2011 6:02 am

Re: Specifying more than one domains in config file

Post by georgechr »

Thanks for the reply.

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

Thanks
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: Specifying more than one domains in config file

Post by applejack »

Yes you can just use

$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'];
georgechr
Forum Members
Forum Members
Posts: 96
Joined: Tue Sep 13, 2011 6:02 am

Re: Specifying more than one domains in config file

Post 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?
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: Specifying more than one domains in config file

Post 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.
Post Reply

Return to “CMSMS Core”