Java的URL重写过滤器 UrlRewriteFilter

openkk 13年前
     <img title="Java的URL重写过滤器 UrlRewriteFilter" border="0" alt="Java的URL重写过滤器 UrlRewriteFilter" src="https://simg.open-open.com/show/cb3d20d5573c05eaee5090db5a6a666f.png" width="60" height="55" />    <br /> UrlRewriteFilter是一个用于改写URL的Web过滤器,类似于Apache的mod_rewrite。适用于任何Web应用服务器(如Resin,Orion,Tomcat等)。其典型应用就把动态URL静态化,便于搜索引擎爬虫抓取你的动态网页。其主要应用场景:    <ul>     <li>URL Tidyness / <a href="/misc/goto?guid=4959499241480185732" rel="nofollow">URL Abstraction</a> - keep URLs tidy irrespective of the underlying technology or framework (JSP, Servlet, Struts etc). </li>     <li>Browser Detection - Allows you to rewrite URLs based on request HTTP headers (such as user-agent or charset). </li>     <li>Date based rewriting - Allows you to forward or redirect to other URL's based on the date/time (good for planned outages). </li>     <li>Moved content - enable a graceful move of content or even a change in CMS. </li>     <li>Tiny/Friendly URL's (i.e. blah.com/latest can be redirected to blah.com/download/ver1.2.46.2/setup.exe) </li>     <li>A Servlet mapping engine (see <a href="/misc/goto?guid=4959499241582978842" rel="nofollow">Method Invocation</a>) </li>    </ul>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1323760463265" target="_blank">http://www.open-open.com/lib/view/home/1323760463265</a></p>