问题描述: 如何在IIS架构的服务器中配置https重定向到http?
答案: 将以下代码另存为web.config
文件后保存到网站根目录即可生效。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to HTTP" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^ON$" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
标签:http,重定向,IIS,配置,如何,https From: https://www.cnblogs.com/hwrex/p/18656365