I'm using [RequireHttps]
to force user to browse particular pages only on https. This works great but it has one issue. Once user navigates to another page it still has https. I want https browsing for only few pages.
How to redirect user from Https to http? Is it possible using RedirectToAction()
method?
A better question would be why would you want the user to revert back to http when all the hard work of the hand-shaking as already been done so the overhead of using https over http is almost non-existent.
Have a look at this question
But answering your question, there is no implementation in MVC to do that, you'll have to do it yourself.
Have a look at this question, it describes how to do what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With