【发布时间】:2017-11-16 14:20:41
【问题描述】:
我正在使用来自http://www.tuckey.org/urlrewrite/ 的 UrlRewriteFilter。主要是我试图获取以下 URL
http://domain/application/?param=value 以重定向到
http://domain/application/?another_param=another_value(只需替换请求参数)。
以下是我的似乎不起作用的规则配置
<rule>
<from>^(.*?param=value)$</from>
<to type="forward">%{context-path}?another_param=another value</to>
</rule>
我尝试了其他几种变体,但似乎也不起作用。对此问题的任何启示将不胜感激
【问题讨论】:
标签: url-rewriting tuckey-urlrewrite-filter