【发布时间】:2017-05-17 07:12:27
【问题描述】:
我试图在我的生产网站上启用 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="Permanent" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
进入Web.config 而不是Web.Release.config
从那时起,我的 IIS Express 就使用 HTTPS。
我不能让它停止这样做......只是希望 IIS Express 转到 HTTP。
- 退出更改。
- 是否清理/构建了解决方案。
- 手动清除
\bin和\obj - 重新启动 Visual Studio .NET
- 搜索
C:\Program Files\IIS Express以查找与 HTTPS 相关的任何内容 - 搜索
C:\Users\Administrator\Documents\IISExpress以查找与 HTTPS 相关的任何内容
没有成功。
关于如何让它回到 HTTP 有什么想法吗?
【问题讨论】:
标签: .net iis url-rewriting