function redirect() {
                var resultURL = urlTransform(req.url, function(parsed) {
                    parsed.pathname += '/';
                    return parsed;
                });

                res.statusCode = 301;
                res.setHeader('Location', resultURL);
                res.end('Redirecting to ' + resultURL);
            }
function redirect() {
                var resultURL = urlTransform(req.url, function(parsed) {
                    parsed.pathname += '/';
                    return parsed;
                });

                res.statusCode = 301;
                res.setHeader('Location', resultURL);
                res.end('Redirecting to ' + resultURL);
            }
function redirect ( ) { var resultURL = urlTransform ( req . url , function ( parsed ) { parsed . pathname += '/' ; return parsed ; } ) ; res . statusCode = 301 ; res . setHeader ( 'Location' , resultURL ) ; res . end ( 'Redirecting to ' + resultURL ) ; }
Redirect to directory's index.html
Redirect to directory s index . html
Redirect to the next page