Link to my previous question, I want to rewrite the http://www.demo.com/context/user.do?action=home
to http://www.demo.com
, and was advised to try URLRewriteFilter.
The following code
<rule>
<from>^/$</from>
<to type="redirect">%{context-path}/user.do?action=home</to>
</rule>
does not removes the context name, that is I still need to enter from http://www.demo.com/context/
Given all the example in the official site is based on top of the context, is the RewriteFilter really the right tool to solve the initial problem?