locked
Redirect from http to https for Cloud services in Azure portal RRS feed

  • Question

  • Hi, 

    I am not able to redirect from http to https sites. In azure portal. I have web role deployed to azure portal which is a ssl site. When ever i browse with https://domain.com, It is working. but when i browse with http://domain.com it is not working. for redirect i have implement following logic in web.config file.

    <rewrite>
          <rules>
            <rule name="Force_HTTPS" enabled="true">
              <match url="(.*)" ignoreCase="false" />
              <conditions>
                <add input="{HTTPS}" pattern="off" ignoreCase="true" />
              </conditions>
              <action type="Redirect" url="https://xyz.cloudapp.net/" appendQueryString="true" redirectType="Permanent" />
            </rule>
          </rules>
        </rewrite>

     But still it is not redirect to https:// site. 

    Please Help us to solve this issue.

    Thanks

    With Regards

    Anand


    • Edited by Anand kumar vedantham Tuesday, April 7, 2015 2:06 PM For got to include Cloud services in Title
    Tuesday, April 7, 2015 1:59 PM

Answers