app.get("/where", (req, res) => { res.status(301).redirect("https://www.google.com") }) //You need to include the status (301)