title: Node JS Server, cannot get index.html
body: <p>I am making an app with socket.io, so right now I'm making the user interface with HTML and CSS, and everything is working except that when I try to use the nav to go back to the index.html it can't get it. The other Nav elements work because they are in the public directory, but if I move the index file to the public directory it will say that it can't find an index.html at all. So, my main question is, how do I get it to be able to find the HTML file, not in the public directory or to get it to find the index file in the public directory to start off with?</p>
  
  <p>File Structure:</p>
  
  <pre><code>index.html
  server.js
  public
     settings.html
     friends.html
  </code></pre>
  
  <p>HTML for nav:</p>
  
  <pre><code>        &lt;nav&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href="http://localhost:5000/index.html" &gt;Chat&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="http://localhost:5000/friends.html"&gt;Friends&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="http://localhost:5000/settings.html"&gt;Settings&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/nav&gt;
  </code></pre>
  
  <p>Relevant JS:</p>
  
  <pre><code>var express = require('express');
  var app = express();
  app.use(express.static('public'))
  </code></pre>