Express Cierrect to URL
app.get("/where", (req, res) => {
res.status(301).redirect("https://www.google.com")
}) //You need to include the status (301)
Batman
app.get("/where", (req, res) => {
res.status(301).redirect("https://www.google.com")
}) //You need to include the status (301)
app.get('/', (req, res) => {
res.redirect('/foo/bar');
});
window.location.href = "http://mywebsite.com/home.html";
app.get('/', (req, res) => {
res.redirect('/about');
})
res.redirect('https://google.com')
res.redirect('/foo/bar')
res.redirect('http://example.com')
res.redirect(301, 'http://example.com')
res.redirect('../login')