Force HTTPS on Azure and append URL
This is the simple rule that makes correct redirect to HTTPS on Azure WebSites:
<rule name="Redirect to https"> <match url="(.*)"/> <conditions> <add input="{HTTPS}" pattern="Off"/> <add input="{REQUEST_METHOD}" pattern="^get$|^head$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/> </rule>
You can test it here: http://double.azurewebsites.net (take the note on the HTTP in the link) I don't have any other rules defined here. The rule above correctly redirects to deep links, i.e. http://double.azurewebsites.net/Home/About