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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Separate domains for CMS and website


Go to End


976 Views

Avatar
Jare

Community Member, 39 Posts

26 July 2013 at 8:44pm

Hi,

I'm planning to host multiple websites that use SilverStripe. I have this kind of setup in my mind:

- Each website has its own domain, like website1.tld, website2.tld etc...

- CMS's are located at https://cmsdomain.tld/website1 and cmsdomain.tld/website2 etc...

The reason for this is that I want to use https for the CMS, but I don't want to buy separate SSL certificates for all the websites.

I have already tried this and it's kind of working, but need some finishing. For now, the CMS login URL's are like this: https://cmsdomain.tld/website1/admin, and if I go to https://cmsdomain.tld/website1, it will obviously show the website, which is not the purpose. Well, I think I can resolve this particular problem by using mod_rewrite in .htacess.

The actual problem is that in the page editor the CMS shows that a page's URL begins with cmsdomain.tld. Is there a way to define the website's domain excplicitly so that it's not automatically taken from the CMS URL? I know the page structure works (menu links on the website works) because the URL's are correct in the actual website (website1.tld), but I would like to have correct URL's also in the CMS.

Also, I'm not sure if this kind of setup causes any other problems, so if something comes to your mind, please let me know.

Thank you for your support! :) I'm new to SilverStripe, but as I've been discovering it for over a week now, it looks very promising! :) One of the most important things is the simpliness of the UI.