It will allow the webmaster to control the rewrite of URLs before the page is loaded.
UrlRewriteFilter uses an xml file for configuration. Most parameters can be Perl5 style Regular Expressions or Wildcard Expressions.
Here are some key features of "Url Rewrite Filter":
· URL Tidyness / URL Abstraction - keep URLs tidy irrespective of the underlying technology or framework (JSP, Servlet, Struts etc).
· Browser Detection - Allows you to rewrite URLs based on request HTTP headers (such as user-agent or charset).
· Date based rewriting - Allows you to forward or redirect to other URL's based on the date/time (good for planned outages).
· Moved content - enable a graceful move of content or even a change in CMS.
· Tiny/Friendly URL's (i.e. blah.com/latest can be redirected to blah.com/download/ver1.2.46.2/setup.exe)
· A Servlet mapping engine (see Method Invocation)
What's New in This Release: [ read full changelog ]
· Added "no substitution" ability with to element eg, <to>-</to>
· In urlrewrite.xml allow rule, class-rule and outbound-rule elements in any order
· Fixed bug with handling of references in functions (ie, to allow this: ${replace:$1:-:+} )
· Added slf4j logging support for logLevel (filter parameter)
· Added function for calculating string length (eg, ${length:asdf} would return 4)
· Added "proxy" to type, to enable requests to be proxied to another server
· Added "context" attribute to <to> type, to enable requests to sent to other contexts (assuming app server configured to do this)
· JDK 6+ Annotation processor
· JDK 5 & 6+ Annotation processors included in main jar file
· Fixed bug with decoding urls and added ability to specify 'header' type decoding
· Added allowConfSwapViaHttp filter parameter to allow configuration swap out at runtime.