Skip to content
Browse files

redirect to 2012

  • Loading branch information...
1 parent 48ed39a commit a1b747880ebf32dd67dce0c08e65602bd9b137f8 @gerad gerad committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/app.js
View
4 config/app.js
@@ -74,8 +74,8 @@ app.configure('development', function() {
app.configure('production', function() {
app.use(express.static(app.paths.public, { maxAge: 1000*60*5 }));
app.use(function(req, res, next) {
- if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== 'nodeknockout.com')
- res.redirect('http://nodeknockout.com' + req.url);
+ if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== '2012.nodeknockout.com')
+ res.redirect('http://2012.nodeknockout.com' + req.url);
else
next();
});

0 comments on commit a1b7478

Please sign in to comment.
Something went wrong with that request. Please try again.