Helicon Isapi 重写 - 无法获取不区分大小写的 URL

发布于 2024-07-27 04:10:46 字数 643 浏览 1 评论 0原文

运行 Helicon Isapi 重写,使过长的 Coldfusion CMS 生成的 URL 变得“友好”。 工作得很好,我们已经使用它好几年了,无论是直接重写还是正则表达式。

我无法让它不区分大小写地处理网址。

以下规则是一个示例:

RewriteRule /scriptcontent/h1n1/h1n1submission.cfm\?section=Human_swine_H1N1_influenza    http\://www.racgp.org.au/h1n1influenza/feedback [I,RP]

RewriteRule /h1n1influenza\/feedback? /scriptcontent/h1n1/h1n1submission.cfm\?section=Human_swine_H1N1_influenza

我认为 [I] 标志应该使 isapi 忽略大小写,但 www.racgp.org.au/h1n1influenza/feedback 可以工作,而 www.racgp.org.au/H1N1influenza/feedback 则不能。

我可以通过为大写制定另一条规则并重定向到小写网址来解决这个问题,但宁愿有一个适用于所有网址(无论大小写)的设置。

提前谢谢了

Running Helicon Isapi rewrite to make overly long coldfusion CMS generated urls 'friendly'. Works very well and we've been using it for several years both with direct rewrites and regex.

I cannot get it to treat urls case insensitively.

The following rule is an example:

RewriteRule /scriptcontent/h1n1/h1n1submission.cfm\?section=Human_swine_H1N1_influenza    http\://www.racgp.org.au/h1n1influenza/feedback [I,RP]

RewriteRule /h1n1influenza\/feedback? /scriptcontent/h1n1/h1n1submission.cfm\?section=Human_swine_H1N1_influenza

I thought the [I] flag should make isapi ignore case but www.racgp.org.au/h1n1influenza/feedback works where www.racgp.org.au/H1N1influenza/feedback doesn't.

I can get around it by making another rule for upper case and redirecting to the lowercase url but would rather have a setup that works for all urls regardless of case.

Many thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难以启齿的温柔 2024-08-03 04:10:46

我认为 [I] 标志适用于 IIRF 过滤器 。
对于Helicon,也许你想要[NC](menmonic“Not Casesensitive”)

I think the [I] flag applies to the IIRF filter .
For Helicon maybe you want [NC] (menmonic "Not Case sensitive")

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文