title: Node.js static folder reference not loading CSS
body: <p>I am currently developing a website using Node.js.
  I just set up my 404 page, and it works fine when I go to something like <code>mywebsite.com/404</code> or another page that doesn't exist, but if I try access to something like <code>mywebsite.com/foo/bar</code>, which also doesn't exist, the assets like <code>CSS</code> and <code>JS</code> don't load. On the server, I am using:</p>
  
  <pre><code>app.use('/assets', express.static(__dirname + '/public'));
  </code></pre>
  
  <p>And, on the page itself:</p>
  
  <pre><code>&lt;link href="/assets/css/bootstrap.min.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p>I know that adding a <code>../</code> in front of the assets on the HTML will work, but that is not ideal. Any help?</p>
  
  <p>My Folder Structure is something as follows: </p>
  
  <pre><code>Project Folder
  |-App.js
  |-views
    |-404.ejs
    |-home.ejs
  |-public
    |-CSS
      |-Bootstrap.min.css
    |-js
    |-img
    |-font
  </code></pre>