URL Rewrite en IIS de http a https no funciona,

Tengo un problema. EnIIS Tengo un sitio web con dos puertos80 y443(https). Quiero redirigir todos loshttp peticiones del usuario ahttps. También agreguéRewrite rule to https, pero cuando entro en el navegadorhttp://localhost/site me da la misma pagina Necesito redirigir al usuario ahttpS://localhost/site.

Tal vez esto es debido a mis configuraciones locales?

Y desactivoRequire SSL enIIS.

The rule is:
<rewrite>
  <rules>
    <rule name="HTTPS Redirect">
      <match url="(.*)" ignoreCase="false" />
      <conditions>
        <add input="{HTTPS}" pattern="off" ignoreCase="false" />
      </conditions>
      <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}{REQUEST_URI}" />
    </rule>
  </rules>
</rewrite>

Gracias.

Respuestas a la pregunta(4)

Su respuesta a la pregunta