【问题标题】:Does the order of RewriteRule flags matter?RewriteRule 标志的顺序是否重要?
【发布时间】:2015-04-17 05:33:03
【问题描述】:

我找不到说明 RewriteRule 中标志顺序的文档。我认为没有,但希望得到确认。

这两个是等价的吗?

RewriteRule ^/test(.*) https://example.com/sites/test$1 [NC,R,L,NE]

RewriteRule ^/test(.*) https://example.com/sites/test$1 [NC,NE,R,L] 

【问题讨论】:

  • 不,它们无关紧要。
  • 你真的有问题吗?
  • @arco444:我将您的评论转换为答案。

标签: apache .htaccess mod-rewrite redirect


【解决方案1】:

不,单个 RewriteRule 中的标志顺序无关紧要。

【讨论】:

    猜你喜欢
    • 2017-08-09
    • 2014-06-12
    • 2010-10-19
    • 1970-01-01
    • 2013-08-29
    • 2011-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多