SyntaxFix
Write A Post
Hire A Developer
Questions
In Express you can use
res.redirect('http://example.com');
to redirect user from server.
To include a status code 301 or 302 it can be used
res.redirect(301, 'http://example.com');