【问题标题】:For URLRewriter tuckey how can I stop processing further rules once a rule matches对于 URLRewriter tukey,一旦规则匹配,我如何停止处理进一步的规则
【发布时间】:2012-07-28 17:40:02
【问题描述】:

我正在使用带有 tukey 的 tomcat 进行 URLRewrite。我的 urlrewrite.xml 中几乎没有规则。我如何确保其中一个规则匹配;它停止处理进一步的规则!

【问题讨论】:

    标签: tomcat url-rewriting tuckey-urlrewrite-filter


    【解决方案1】:

    找到答案;提到“last = true” 例如:

        <rule >
            <from>/kids/(.*)$</from>
            <to type="forward" last="true">/kids/$1.jsp</to>
        </rule>
    

    【讨论】:

      猜你喜欢
      • 2014-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 2016-02-12
      • 2018-04-26
      • 1970-01-01
      相关资源
      最近更新 更多