Description
Correctly redirecting pages is important in SEO. The two main redirects status codes are 301 and 302: respectively permanent and temporary redirects
Example
app.get("/de/folder/page", function(request, response) { response.writeHead(301, { Location: "https://newtargetpage.com", Expires: new Date().toGMTString() }); response.end(); });
app.get("/de/folder/page", function(request, response) { response.writeHead(302, { Location: "https://newtargetpage.com", Expires: new Date().toGMTString() }); response.end(); });