I've used SecuritySwitch for that. It's a one dll .NET library, configured through a config section in web.config, which means it's possible to just add the section declaration to web.config, and have the pages configured in its own config source file living in /config. Works perfectly for what you want.
Which will set up your site to ensure that /login.aspx is using https, and switch back to http for all other pages, it even works for normal umbraco pages, as it looks at the request url coming in, not what it translates to after internal Umbraco url rewriting has taken place.
Switch out of as well as into HTTPS
I need to make a couple of pages switch into HTTPS mode, but I also need to ensure that all other pages are HTTP.
I have seen a package that allows you to switch into HTTPS but it does not appear to be suitable for v4.7.
Is this something that could be done with URL Rewriting?
Hi Gordon,
I've used SecuritySwitch for that. It's a one dll .NET library, configured through a config section in web.config, which means it's possible to just add the section declaration to web.config, and have the pages configured in its own config source file living in /config. Works perfectly for what you want.
Here's a sample configuration:
Which will set up your site to ensure that /login.aspx is using https, and switch back to http for all other pages, it even works for normal umbraco pages, as it looks at the request url coming in, not what it translates to after internal Umbraco url rewriting has taken place.
Regards
Jesper Hauge
Thanks Jesper, we are currently testing this to check if it does what we need ...
... and yes it does :-)
is working on a reply...