to urlrewrite.xml it works good.
<rule>
<from>^/test\??(.*)$</from>
<to>%{context-path}/mapped</to>
</rule>
but why??
I think the first regex group in the <from> element will be lost if I don't mention it using $1 in the <to> element; so queries would not be contained in the result url!
It seems queries are contained without adding $1. Also when I add $1, it causes the queries to be repeated. (they got writen 2 times)
Обсуждают сегодня