AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 466320
Accepted
bgmCoder
bgmCoder
Asked: 2013-01-12 13:46:26 +0800 CST2013-01-12 13:46:26 +0800 CST 2013-01-12 13:46:26 +0800 CST

为什么此 IIS 重写不适用于 Firefox 和 Chrome?

  • 772

在我的 Windows 2008R2 服务器上的 IIS7.5 中,我有一个 url 重写。重写似乎在 Internet Explorer 中有效,但 Firefox 和 Chrome 仍然给我一个 404。如果不使用缓存中存储的内容进行刷新,Firefox 甚至会跳过重定向。

任何线索如何使这正确?

    <rewrite>
        <rules>
            <rule name="Redirect site" patternSyntax="Wildcard" stopProcessing="true">
                <match url="{HTTP_HOST}/site*" />
                <conditions>
                </conditions>
                <action type="Redirect" url="http://site.domain.org"  redirectType="Permanent"/>
            </rule>
        </rules>
    </rewrite>
iis-7.5
  • 2 2 个回答
  • 8692 Views

2 个回答

  • Voted
  1. John Gardeniers
    2013-01-13T01:43:57+08:002013-01-13T01:43:57+08:00

    我不能谈论 Chrome,但 Firefox 有一个错误,并且已经有一段时间了,它无法识别某些页面上的新内容,而是使用它的缓存。只是重新启动浏览器没有任何效果。您必须完全清除浏览器缓存。在某些 Web 应用程序中,我必须将随机字符串或带时间戳的字符串附加到 URL,以便让 FF 始终重新加载某些页面。标头中的相关元标记也经常被 FF 忽略。

    • 2
  2. Best Answer
    bgmCoder
    2015-02-01T17:39:34+08:002015-02-01T17:39:34+08:00

    这是我最终得到的结果,这似乎有效。

    <rewrite>
      <rules>
        <rule 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="Permanent" />
        </rule>
      </rules>
    </rewrite>
    
    • 0

相关问题

  • IIS 7.5 中的 FTP 站点配置

  • Windows 2008、IIS7 和虚拟目录

  • IIS7 测试身份验证和 IUSR 帐户

  • IIS 7.5 (Windows 7) - HTTP 错误 401.3 - 未经授权

  • Windows 7 IIS v7.5 是否有任何连接限制?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve