AI OnAI Off
This works for me with all query strings:
<rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule>
Adding this rule in web.config of an asp.net 4.5 project:
http://site1.internal.sw-company.com/page1 redirects me to .compage1 (notice slash / sign is missing between .com and page1 in the redirect)
How would you fix this?