IIS 7.5 Rewrite help needed
Posted
by
Nolan Berry
on Server Fault
See other posts from Server Fault
or by Nolan Berry
Published on 2012-04-11T19:47:28Z
Indexed on
2012/04/11
23:33 UTC
Read the original article
Hit count: 290
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?
© Server Fault or respective owner