How to fix ERR_TOO_MANY_REDIRECTS error in IIS?

Viewed 11

After following the tutorial on IIS HTTP to HTTPS redirection, I get ERR_TOO_MANY_REDIRECTS error, how it is possible to fix this?

web.config:

<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTPS force" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

'Client certificates' in SSL setting is set to 'ignore'.

0 Answers
Related