I have a azure web app which uses custom domain from godaddy.
I got the SSL certificate from namecheap.com and applied binding to both mathanka.com and www.mathanka.com When i enter manually it works fine. I used web.config with below mentioned rules.
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>
</rewrite>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
</staticContent>
</system.webServer>
but its not redirecting to https:// url : mathanka.com
Please guide me the solution and step to take.
Thanks.