Я пытаюсь использовать Tuckey urlRewriteFilter для перезаписи любых URL на https://, сохраняя при этом любые параметры строки запроса, которые были добавлены к URL. Мой файл urlrewrite.xml в настоящее время выглядит так
The rule means that requests to /test/status/ will be redirected to /rewrite-status
the url will be rewritten.
/test/status/
%{context-path}/rewrite-status
^HTTPS$
/station/StationPingServlet
/station/StudioPingServlet
^.*$
https://%{server-name}%{request-uri}
The outbound-rule specifies that when response.encodeURL is called (if you are using JSTL c:url)
the url /rewrite-status will be rewritten to /test/status/.
The above rule and this outbound-rule means that end users should never see the
url /rewrite-status only /test/status/ both in thier location bar and in hyperlinks
in your pages.
/rewrite-status
/test/status/
Я думал, что use-query-string="true" достигнет этого, так что
http://server.com/test.jsp?company=3&id=1
будет переписан в
https://server.com/test.jsp?company=3&id=1
но, похоже, этого не происходит. Происходит то, что
http://server.com/test.jsp?company=3&id=1
переписывается как
Я что-то делаю не так? Спасибо за любой совет.