<p>We want ALL sites on our webserver (IIS 10) to enforce SSL (ie redirect HTTP to HTTPS).</p>
<p>We are currently ‘Requiring SSL’ on each site and setting up a <code>403 error</code> handler to perform a <code>302 redirect</code> to the https address for that specific site.</p>
<p>This works great. But it’s a pain to do for every single site, there’s plenty of room for human error.</p>
<p>Ideally I’d like to set up a permanent <code>301 redirect</code> on all <code>HTTP://</code> to <code>HTTPS://</code></p>
<p>Is there a simple way to do this in IIS ?</p>