我有以下规则:
<rule>
<from>^/users/(.*)$</from>
<to last="true">/users.do$1</to>
</rule>
我想匹配以下网址:
http://localhost:8077/users/?elemsPerPage=10
并将其重定向到:
http://localhost:8077/users.do?elemsPerPage=10
问题是当 url 重写器引擎找到“?” url 中的字符它不会在 $1 匹配参数中返回任何其他内容。它也不会将参数添加到查询字符串中。有任何想法吗?