<?xml version="1.0"?><rss version="2.0">
<channel>
  <title>Alan&#039;s Ramblings - urlrewrite tag</title>
  <link>http://bleaklow.com:80/tags/urlrewrite/</link>
  <description>My opinions may be incorrect, but they are my own</description>
  <language>en</language>
  <copyright>Alan Burlison</copyright>
  <lastBuildDate>Wed, 29 Feb 2012 20:50:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  <image>
    <url>http://bleaklow.com/images/misc/logo.gif</url>
    <title>Alan&#039;s Ramblings</title>
    <link>http://bleaklow.com:80/</link>
  </image>
  <item>
    <title>mod-rewrite equivalent for Tomcat</title>
    <link>http://bleaklow.com:80/2010/06/02/mod_rewrite_equivalent_for_tomcat.html</link>
    <description>
          &lt;p&gt;
I&#039;ve migrated and merged my old blogs.sun.com and bleaklow.com blogs into this new one, using &lt;a href=&#034;http://pebble.sourceforge.net/&#034;&gt;Pebble&lt;/a&gt;.  As a result, there are a number of links out there on the interwebs to bleaklow.com that are now broken, as everything has moved around - google&#039;s &lt;a href=&#034;http://www.google.com/webmasters/tools/&#034;&gt;webmaster tools&lt;/a&gt; gives me a comprehensive list.  If I was hosting this blog using &lt;a href=&#034;http://httpd.apache.org/&#034;&gt;Apache&lt;/a&gt;, the standard solution would be to use the most excellent &lt;a href=&#034;http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html&#034;&gt;mod-rewrite&lt;/a&gt; Apache module to redirect the broken links to somewhere appropriate.  However Pebble is a &lt;a href=&#034;http://java.sun.com/javaee/&#034;&gt;J2EE&lt;/a&gt; application and uses &lt;a href=&#034;http://tomcat.apache.org/&#034;&gt;Tomcat&lt;/a&gt; instead of Apache.  I&#039;ve been looking for an equivalent to mod-rewrite for a while and never managed to find anything.  Whilst looking for something else entirely (always the way) I found &lt;a href=&#034;http://tuckey.org/urlrewrite/&#034;&gt;Url Rewrite Filter&lt;/a&gt;.  This is functional equivalent to mod-rewrite for J2EE servers, and offers most of the same features as mod-rewrite.  I&#039;m using it and it seems to do the job just fine, and the beta even has a mod-rewrite style configuration option, if you need a security blanket :-)
&lt;/p&gt;</description>
      <category>Web</category>
    <category>Tech</category>
    <category>Java</category>
    <comments>http://bleaklow.com:80/2010/06/02/mod_rewrite_equivalent_for_tomcat.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2010/06/02/mod_rewrite_equivalent_for_tomcat.html</guid>
    <pubDate>Wed, 02 Jun 2010 17:15:00 GMT</pubDate>
  </item>
  </channel>
</rss>

