title: Best way in asp.net to force https for an entire site?
body: <p>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("<a href="https://example.com" rel="noreferrer">https://example.com</a>")</p>
  
  <p>Is there a better way -- ideally some setting in the web.config?</p>