title: Redirect non-www to www with Node.js and Express
body: <p>I am serving a static directory like so:</p>
  
  <pre><code>var app = express.createServer();
  app.configure(function(){
      app.use(express.static(__dirname + '/public'));
  });
  </code></pre>
  
  <p>So I am not using routes at all. I would like to redirect example.com to www.example.com, is this possible using Express?</p>