UrlRewriteFilter: delete options

I have a URL like example.com/sample.html?h=22&w=23

How to use UrlRewriteFilter to remove parameters from this URL and redirect the request using example.com/sample.html URL? I need to remove the parameters because my application (hosted on Tomcat) does not process these parameters.

0
url rewriting
source share
1 answer
<urlrewrite> <rule> <note>Forward calls from sample.html to sample.html with no query_string</note> <from>^/sample.html$</from> <to type="redirect" last="true">/sample.html</to> </rule> <urlrewrite> 

you can use redirects, not redirects, depending on our circumstances.

0
source share

All Articles