var http = require('http'); var app = http.createServer(function(req, res){ ... // redirect res.writeHead(302, {Location: 'http://www.company.com'}); res.end(); ... });