Configuring Tomcat's Rewrite Valve To Work With Different Contexts

Imagine you have a Tomcat 8 server running two different contexts with URLs like this: someurl.example/context1/.... someurl.example/context2/.... and you need to capture requests to: someurl.example/ »