View Complete Thread
  • Rewrite URL- redirection from http to https

    Jul 15, 2019 06:59 PM|Divya T|LINK

    Hi,

    For one of our websites, the site works for both http and https. I'm trying to set up URL redirection so that http lands to https.

    Web config info:


    <rule name="DecomURLredirection-http to https" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
    <match url="*" />
    <conditions logicalGrouping="MatchAny">
    <add input="{HTTPS}" pattern="Off" />
    </conditions>
    <action type="Redirect" url="https://{HTTP_HOST}/{REQUEST_URI}" logRewrittenUrl="false" redirectType="Found" />

    Even though I set up redirection, still http lands to same URL and no redirection effect is noticed. Tried redirect url as https://{HTTP_HOST}/{R:0} but still does not help.

    Can someone guide here?

    Thanks,
    Divya