title: redirect htaccess rule for node express application
body: <p>my node js application is serving pages on port 3000, and to redirect here when user type for example</p>
  
  <p><a href="http://pctechtips.org/apps/nodetest" rel="nofollow noreferrer">http://pctechtips.org/apps/nodetest</a></p>
  
  <p>I'm adding this to my .htaccess file. </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteRule ^$ http://127.0.0.1:3000/ [P,L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ http://127.0.0.1:3000/$1 [P,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But I'm not getting my node/express app displaying "hello world" Is this rule correct. This is meant to work on a share hosting service with cPanel. 
  here's my express route</p>
  
  <pre><code>var express = require("express");
  var app = express();
  
  //=========== Express Routes Here ==========//
  //default route
  app.get("/", function(req, res){
          res.send("Hello Node.js");
  });
  
  //catch all other routes
  app.get("*", function(req, res) {
          res.send("Invalid Page");
  });
  
  //server listening on port 3000
  app.listen(3000, function() {
          console.log("server started on port 3000");
  });
  </code></pre>