【发布时间】:2014-06-13 19:26:43
【问题描述】:
我刚刚被介绍给 tuckey,并且正在尝试在 pentaho 服务器(春季)中重写 url 查询参数。
我正在尝试做的事情: 重写
http://hostname:8080/pentaho/api/repos/:public:Steel%20Wheels:Regional%20Sales%20%28dashboard%29.xdash/viewer?token=ABC-1234-42rheRFrhewu2425-ticket&username=popcorn
到
http://hostname:8080/pentaho/api/repos/:public:Steel%20Wheels:Regional%20Sales%20%28dashboard%29.xdash/viewer
对我不起作用的事情:
<rule>
<from>^/viewer$</from>
<to type="redirect" last="true">/viewer</to>
</rule>
<rule>
<condition type="parameter" name="token" operator="equal">(*)</condition>
<from>^/viewer$</from>
<to type="permanent-redirect" last="true">viewer</to>
</rule>
和许多变体。还检查了旧帖子。我知道我可能对正则表达式做错了,或者配置完全关闭。任何指针表示赞赏。
【问题讨论】:
标签: spring tomcat spring-mvc url-rewriting tuckey-urlrewrite-filter