Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multiple Seperate Domains with Subsites


Go to End


3 Posts   4671 Views

Avatar
keeny

Community Member, 48 Posts

8 January 2009 at 12:53pm

Hi guys,

I have set up the subsites module and can get it working for sub1.domain.com, sub2.domain.com, etc. However, I don't know how to make it work for domain1.com, domain2.com

I am unable to post to topics in the forum archive so I refer you to the post below... If willr is out there, I'd appreciate any help!

Thanks,

Barry

--------

In the following post: http://www.silverstripe.org/archive/show/105773?start=8

on: 26 June 2008 at 9:58pm

willr writes:
The subsites module is probably what you are looking for. You can use the 1 CMS to manage multiple sites. For a real world example we have recently done is the epmu.org.nz site. This site uses the subsites module to control the http://www.workrights.org.nz/. You can also create, manage as many subsites as you want and set custom themes.

As to the state of it for 'general' release, It has no documentation and has had no public releases as of yet (only used on a few internally done sites) so its probably in the 'risky' to use category!

Avatar
Sam

Administrator, 690 Posts

8 January 2009 at 2:00pm

Avatar
phoenix

Community Member, 1 Post

12 July 2009 at 11:55am

Hi Sam,

I installed subsites and managed successfully subdomains. But I want to manage also Second Level Domains like keeny. So I set up mysite/_config.php with

Subsite::set_allowed_domains(array(
   'com',
   'org',
));

and created subsites like foo.com and foo.org with tiny "home" pages just to seperate them. But whatever I do, I see always the subsite defined as "Default Site" on booth foo.org and foo.com. What's my mistake?