【发布时间】:2015-03-09 19:51:56
【问题描述】:
我有一个简单的 tukey 规则将路径转发到另一条路径,如下所示:
<rule>
<name>foo</name>
<condition name="user-agent">some condition based on device</condition>
<from>^/abc/(.*)$</from>
<to type="forward">/xyz/$1</to>
</rule>
事实上,我在点击 /abc 时得到 404,但是当我将类型更改为“重定向”时,它工作正常。
我定义的规则有什么问题吗?
【问题讨论】:
标签: java tomcat jetty tuckey-urlrewrite-filter