none
HTTP to https redirection is not working

    Question

  •  I am trying to redirect my site from http to https at azure server (cloud service). I have added redirect rule in web cofig but its not working. I was seaching the extension for http to https in cloudservice what its not there. Could you please suggest how can I do this

    I have added following in web config :

     <rewrite>
            <rules>
              <rule name="Redirect to HTTPS">
                <match url="(.*)" />
                <conditions>
                  <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                  <add input="{URL}" pattern="/$" negate="true" />
                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                </conditions>
                <action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="SeeOther" />
              </rule>
            </rules>
          </rewrite>

    Can I handle it from azure portal 

    Friday, December 14, 2018 4:36 AM

All replies