IIS 7.5 Rewrite help needed
- by Nolan Berry
I am trying to do something extremely straightforward. I just need to force SSL and I am trying to use the URl Rewrite plugin. I am getting no results when I put the following rule into my conf.
<rewrite>
<rules>
<rule name="Redirect to https" stopProcessing="true">
<match url="(.*)[^/])$" />
<conditions>
<add input="{SERVER_PORT}" pattern="443" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" />
</rule>
</rules>
</rewrite>
Any thoughts on why this isn't catching?