title: Namecheap: Node JS Express App - App Route return 404 not found
body: <p>Trying to get Simple Express Application up using NameCheap Shared Hosting.</p>
  
  <p>I have set up my Node JS application as Described here <a href="https://www.namecheap.com/support/knowledgebase/article.aspx/10047/2182/how-to-work-with-nodejs-app" rel="nofollow noreferrer">NodeJS NameCheap Docs</a></p>
  
  <p>Current Setup:</p>
  
  <pre><code>Application Root: url.com
  Application URL: url.com
  Application Startup File: server.js
  </code></pre>
  
  <p>I have ran NPM Install using the button provided</p>
  
  <p>I have tried loading the URL <code>http://url.com/hello</code> Expecting <code>Hello World</code> to displayed in the Page. </p>
  
  <pre class="lang-js prettyprint-override"><code>var express = require("express");
  var app = express();
  const port = 3001;
  
  app.set("port", port);
  
  app.get("/hello", function(req, res) {
    res.send("hello world");
  });
  
  app.listen(app.get("port"), () =&gt;
    console.log("Started listening on %s", app.get("port"))
  );
  </code></pre>
  
  <p>The results I am getting when navigating to <code>http://url.com/hello</code>:</p>
  
  <pre><code>Not Found
  The requested URL /index.php was not found on this server.
  
  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  </code></pre>