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