Optimum IIS configuration for SSL redirect with multiple certificates installed

Solution 1:

To handle various types of redirect in IIS try using the url rewrite module

http://www.iis.net/downloads/microsoft/url-rewrite

Then add this in web config per site for http to https redirect:

<rule name="Redirect to HTTPS" stopProcessing="true">
  <match url="(.*)" />
    <conditions><add input="{HTTPS}" pattern="^OFF$" />
    </conditions>
  <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>

You can also accomplish this using GUI via IIS url rewrite module interface: enter image description hereenter image description here