Skip to content

Commit a1b7478

Browse files
author
Gerad Suyderhoud
committed
redirect to 2012
1 parent 48ed39a commit a1b7478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ app.configure('development', function() {
7474
app.configure('production', function() {
7575
app.use(express.static(app.paths.public, { maxAge: 1000*60*5 }));
7676
app.use(function(req, res, next) {
77-
if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== 'nodeknockout.com')
78-
res.redirect('http://nodeknockout.com' + req.url);
77+
if (req.connection.remoteAddress !== '127.0.0.1' && req.headers.host !== '2012.nodeknockout.com')
78+
res.redirect('http://2012.nodeknockout.com' + req.url);
7979
else
8080
next();
8181
});

0 commit comments

Comments
 (0)