redirect to different url express code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: express js redirect to url
app.all('/secret', function (req, res, next) {
console.log('Accessing the secret section ...')
next() // pass control to the next handler
})