{I+=codeWee;}
[node.js] node.js : redirect
var http = require('http');


var app = http.createServer(function(req, res){


	...
	
	// redirect
	res.writeHead(302, {Location: 'http://www.company.com'});
	res.end();


	...

});
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.