title: Detect IE in expressjs, but can't get static files
body: <p>I've tried to detect IE by using expressjs, the code surely redirect me to the error page.</p>
  
  <p>But the problem is that it won't render css files and get image files in my folder.</p>
  
  <p>I think the problem is that expressjs redirect to <code>error_page</code> before the static path is set.</p>
  
  <p>So I put <code>app.all('*', ieRedirecter);</code>, after </p>
  
  <pre><code>app.use(express.static(path.join(__dirname, 'public')));
  app.use(express.static(__dirname + '/uploads'));
  </code></pre>
  
  <p>The problem is still occur... could someone help me out, thanks!</p>
  
  <p>My settings</p>
  
  <pre><code>function ieRedirecter(req, res, next) {
    if(req.headers['user-agent'].indexOf("MSIE") &gt;= 0) {
      var myNav = req.headers['user-agent'];
      var IEbrowser = parseInt(myNav.split('MSIE')[1]) 
      if(IEbrowser &lt; 9) {
        res.render('error/browser_error', {title : 'not supporting your browser'})
      } else {
        next();
      }
    } else {
      next();
    }
  };
  
  app.configure(function(){
      app.set('port', process.env.PORT || 3000);
      ...
      ...
      ...
      app.use(app.router);
  
      app.use(express.static(path.join(__dirname, 'public')));
      app.use(express.static(__dirname + '/uploads'));
  
      app.all('*', ieRedirecter);
  })
  </code></pre>