title: Cannot serve static files with express routing and no trailing slash
body: <p>I want a route called 'main' which will serve static files:</p>
  
  <pre class="lang-js prettyprint-override"><code>app.use('/main',express.static(__dirname+'/public'));
  </code></pre>
  
  <p>However when i do:</p>
  
  <pre class="lang-none prettyprint-override"><code>http://my.site.dev/main
  </code></pre>
  
  <p>The CSS and JS files won't download because it is trying to get them from</p>
  
  <pre class="lang-none prettyprint-override"><code>http://my.site.dev/css/styles.css
  </code></pre>
  
  <p>It should be getting the files from:</p>
  
  <pre class="lang-none prettyprint-override"><code>http://my.site.dev/main/css/styles.css
  </code></pre>
  
  <p>However, if I access my site with a trailing slash:</p>
  
  <pre class="lang-none prettyprint-override"><code>http://my.site.dev/main/
  </code></pre>
  
  <p>All files come through fine</p>
  
  <p>Any ideas why not having a trailing slash messes up resources like CSS and JS from coming in?</p>