还是自己搞定了,现在奉献给大家吧
2.对于asp.NET站点,可以直接修改web.config配置文件:
以下内容加在web.config配置文件内<configuration>与</configuration>标签之间就行了。针对kesionICMS.
<!--https to https重写 -->
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<!--https to https重写 -->