title: Where Tomcat 7 apply redirect 302 on directory (seo story))
body: <p>As normal, tomcat 7 do a redirect 302 on a directory ressource if trailing slash is not present.</p>
  
  <pre><code>http://localhost/files --&gt; 302, http://localhost/files/
  </code></pre>
  
  <p>We/I just want to change the response code to a permanetly redirection (301) in order to follown seo purpose. In my system, i cannot do this check before tomcat application...</p>
  
  <p>I have made some test with tomcat7, and it seem that redirection occurs before a call to DefaultServlet. </p>
  
  <p>I'm little in a trouble, if anyone have any idea, it will be very welcome</p>
  
  <p>Jerome</p>