Помимо этого, переадресация должна быть настроена в IIS не через HTTP Redirect, а через URL Rewrite.
Пример для редиректа на HTTPS версию:
<system.webServer><rewrite><rules><rule name="Redirect to HTTPS" stopProcessing="true"><match url=".*" /><conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://{HTTP_HOST} {REQUEST_URI}" redirectType="Temporary" appendQueryString="false" /></rule></rules></rewrite></system.webServer> |