url rewriting - UrlRewriteFilter: remove parameters -



url rewriting - UrlRewriteFilter: remove parameters -

i have url example.com/sample.html?h=22&w=23

how can utilize urlrewritefilter remove params url , redirect request url example.com/sample.html? need remove params because application (hosted on tomcat) not handle these.

<urlrewrite> <rule> <note>forward calls sample.html sample.html no query_string</note> <from>^/sample.html$</from> <to type="redirect" last="true">/sample.html</to> </rule> <urlrewrite>

you might want utilize forwards rather redirect, depends on our circumstances.

url-rewriting

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -