nodejs redirect to url
// In Express
router.get('*',function(req,res){
res.redirect('http://exmple.com'+req.url)
})
3.8
5
response.writeHead(301,
{Location: 'http://whateverhostthiswillbe:8675/'+newRoom}
);
response.end();
Thank you!
5
0
Are there any code examples left?
New code examples in category Javascript