response.writeHead(302, {'Location': '/account/login.html'});
response.end();
switch (req.url) {
case "/":
path += "index.html";
break;
case "/about":
path += "about.html";
break;
case "/about-us": // <--- redirection from /about-us to /about
res.statusCode = 301;
res.setHeader("Location", "/about");
res.end();
break;
default:
path += "404.html";
res.statusCode = 404;
}