Best way in asp.net to force https for an entire site?
Posted
by theminesgreg
on Stack Overflow
See other posts from Stack Overflow
or by theminesgreg
Published on 2008-09-05T23:34:53Z
Indexed on
2010/06/17
14:53 UTC
Read the original article
Hit count: 218
About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the page load event. If the request was not over http I would response.redirect("https://mysite.com")
Is there a better way -- ideally some setting in the web.config?
© Stack Overflow or respective owner