IIS 7 URL从http重写为https
我的web.config文件中有:IIS 7 URL从http重写为https,iis,redirect,iis-7,web-config,rewrite,Iis,Redirect,Iis 7,Web Config,Rewrite,我的web.config文件中有: <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions>
<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>
,我得到404未找到的错误。但如果我转到,一切正常。我的SharePoint web应用程序遇到了这个问题。这是一个带有外联网扩展的内联网。外联网只为443建立。一旦我在IIS中为端口80的Extranet应用程序添加了绑定,重定向就成功了