Redirects & SEO

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();
});
                        





Alex Bieth, SEO Consultant