title: nodejs equivalent of this .htaccess
body: <p>Is it possible to build a code like this in <code>node.js</code>?</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
       RewriteEngine on
  
       RewriteCond% {REQUEST_URI}! / (View) / [NC]
       RewriteCond% {REQUEST_FILENAME}!-F
       RewriteRule ^ (. *) $ Index.html [L, QSA]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>url display a route is not "view" and also the file does not exist then write <code>index.html</code>.</p>
  
  <p>using something like <code>express</code> or <code>connect</code></p>
  
  <p>UPDATE: I need a regular expression for <code>!/(view)/</code> in route for <code>express</code> in <code>node.js</code>.</p>