Require SSL property for a group of Pages
I would like the ability to be able to "Require SSL" for an entire group of Pages rather than having to set it for each and every individual page. In many cases, I want to secure a particular administrative section of the site without having to configure the "Require SSL" setting on each and every single page within the Page Group.
Hello Samir Vaidya,
You can use the Pages API and set the RequireSSL property to true for as many pages as you wish at once. For example:
App.WorkWith().Pages().LocatedIn(Telerik.Sitefinity.Fluent.Pages.PageLocation.Frontend).ForEach(p =>
p.Page.RequireSsl =
true
; ).SaveChanges();
I would like to be able to do this directly through the Sitefinity UI in Title & Properties rather than having to write custom code in order to accomplish this.
Hello Samir Vaidya,
We will try to add such option in the Q3. Most probably we will set it as a configuration somewhere.
Greetings,Georgi:
I am looking forward for this new feature in the Q3 release.. It is not a good idea to have the "RequireSSL" at page level only and not at a site level..
Can you please confirm that this feature will be added in Q3?
Thanks,
Ganesh
Hi Ganesh,
This feature wasn't scheduled for Q3 unfortunately. We suggest using the code above in order to set SSL on all pages automatically.
Kind regards,Where can the default setting for SSL be set for new pages created? I would like to have the SSL checked by default when new pages are created. I think in 3.x it was done in the web.config under the <cms> section. How is this done in 4x or 5?
Thanks,
Chris