title: Ignore trailing slash with Apache Rewrite
body: <p>I'm using mod_rewrite to redirect like so:</p>
  
  <p><code>RewriteRule (work)/?$ $1.php [L]</code></p>
  
  <p>This sends any URL ending in <code>/work</code> or <code>/work/</code> to <code>work.php</code></p>
  
  <p>The problem is, when a trailing slash is included, it treats it as a directory, and not the file that it really is. This, of course, breaks all of my relative paths in the file.</p>
  
  <p>I don't mind having a slash in the URL, but is there any way to use Apache to <em>ignore</em> the trailing slash, and treat the URL as a file, just as it would without the slash?</p>