【问题标题】:How do I solve a 403 or redirect error in IIS Manager如何解决 IIS 管理器中的 403 或重定向错误
【发布时间】:2021-04-20 20:07:15
【问题描述】:

即使我在 IIS 管理器中正确完成了重定向,浏览器中仍会出现 403 或重定向错误。我已尝试清除我的 cookie,但没有成功。

编辑:在 IIS 管理器中启用直接浏览,这是结果(第五张图片)

redirect checked

result of redirect checked

redirect not checked

result of redirect not checked

result of enabling direct browsing

【问题讨论】:

标签: redirect iis http-status-code-403 http-redirect iis-10


【解决方案1】:

尝试使用 URL Rewrite 模块中的重定向功能:

        <rewrite>
            <rules>
                <rule name="Test" stopProcessing="true">
                    <match url="(.*)" />
              <conditions>
               <add input="{HTTP}" pattern="off" />
              </conditions>
                    <action type="Redirect" url="http://www.example.com" />
                </rule>
            </rules>
        </rewrite>

如果你还没有安装 URL Rewrite,你可以从这个link 下载 URL Rewrite。

【讨论】:

    猜你喜欢
    • 2017-01-05
    • 2021-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-04
    • 2020-05-30
    • 1970-01-01
    • 2019-03-18
    相关资源
    最近更新 更多