Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
http:// . . .
https:// . . .
web.Release.config
<system.webServer> <rewrite xdt:Transform="Insert"> <rules> <rule name="HTTPs Redirect" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer>
Matches the Pattern
Regular Expressions
(.*)
unselected
Match All
HTTPS
off
Redirect
https://{HTTP_HOST}/{R:1}
selected
Permanent (301)
SSL Redirect Rule Settings
<system.webServer> <rewrite xdt:Transform="Insert"> <rules> <rule name="HTTPS rewrite behind ELB rule" enabled="false" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions> <add input="{HTTP_X_FORWARDED_PROTO}" pattern="^http$" ignoreCase="false" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{SERVER_NAME}{URL}" /> </rule> </rules> </rewrite> </system.webServer>
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.