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   434 Views

Avatar
vwd

Community Member, 160 Posts

11 December 2013 at 1:23pm

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

Forum Moderator, 5513 Posts

11 December 2013 at 8:21pm

As per previous versions

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

Avatar
vwd

Community Member, 160 Posts

11 December 2013 at 8:24pm

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

VWD.