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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SS 3.1 way of implementing SSL for admin and various pages


Reply

3 Posts   278 Views

Avatar
vwd

11 December 2013 at 1:23pm Community Member, 159 Posts

Hi,

Just wondering if there is any documentation on how to implement SSL on various sections (particularly Admin, forms and various page types) and page types in SS 3.1? Has anything changed with the yml config system?

Or is it still just a matter of using Director::forceSSL() as is [url=http://www.silverstripe.org/general-questions/show/25129]stated in previous threads[/url]?

What's the best way to force the whole site to use SSL?

Thanks.
VWD.

Avatar
Willr

11 December 2013 at 8:21pm Forum Moderator, 5511 Posts

As per previous versions

Director::forceSSL(array('/^registration/', '/^Security/','/^admin/'));

Avatar
vwd

11 December 2013 at 8:24pm Community Member, 159 Posts

Couldn't be any easier. Thanks for your response @Willr.

VWD.