当我尝试运行我的ASPX应用程序时,我收到“HTTP错误500.52 - URL重写模块错误”错误消息。我添加了从http重定向到https的代码,它工作了几个月但现在已经坏了。有什么想法吗?
<rewrite>
<rules name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rules>
</rewrite>