7/17/2012 11:33:15 AM
165
Reputation
19
Total posts
Hello boys,
I need to enforce HTTPS when user write only HTTP in browser. How can i make this? I tried to add <if> into <UrlRewriter>, but don't work.
And when I add this code into <system.webserver> section, I got "Internal server Error":
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
Thanks.
Rating history (Content is rated 0.00 of 0 vote(s).)
Shows who have rated the content, and the rating score.