все ссылки в проекте меняем +
- <rewrite>
- <rules>
- <!-- BEGIN rule TAG FOR HTTPS REDIRECT
-->
- <rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
- <conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
- <!--
END rule TAG FOR HTTPS REDIRECT
!!!!!!!!!! If there are already other <rule> tags in your web.config, then place the copied <rule> tag before the other <rule> tags.