Answers for "how we can redirect to a html page in express.js"

50

express js redirect to url

window.location.href = "http://mywebsite.com/home.html";
Posted by: Guest on July-18-2019
3

express redirect

app.get('/', (req, res) => {
  res.redirect('/foo/bar');
});
Posted by: Guest on July-18-2020

Code answers related to "how we can redirect to a html page in express.js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language