1

I am working on a web application that uses Tuckey's UrlRewriteFilter for url rewriting. We are looking to migrate to jakarta and intend to also move away from the UrlRewriteFilter and use Tomcat's rewrite valve instead, as suggested by Paul Tuckey himself in this issue.

However, our urlrewrite.xml contains outbound-rules, and I can't figure out how to implement those using Tomcat's rewrite.config. An example of a rule I would like to translate:

<outbound-rule>
  <name>R:outbound-rule</name>
  <from>/app/**</from>
  <to>/$1</to>
</outbound-rule>

Looking through Tomcat's documentation and searching the web has given me no clear insight on how to achieve this. Any help would be greatly appreciated.

0 Answers0