Re-writing tomcat 8 urls
问题 I have two tomcat applications deployed under two different contexts: someurl.com/context1/ someurl.com/context2/ I need to intercept urls in the form: someurl.com/clientname/context1/ and redirect them to url: someurl.com/context1/clientname where "clientname" is dynamic I have tried using a rewrite valve in the element of my tomcats server.xml file, but it still works only for urls which include the context. i.e.: someurl.com/context1/clientname/context1 gets re-written to someurl.com