Helicon Isapi 重写 - 无法获取不区分大小写的 URL
运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 [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")