In Node Js route.js when user try to open
app.use('/mysite1', require('express').static(__dirname + '/mysite1'));
then I want to redirect to
app.use('/mysite2', require('express').static(__dirname + '/mysite2'));
Both paths belong to two different origins.
like In the browser user type http://locahhost:5009/mysite1 this URL
but it will open http://locahhost:5011/mysite2 this URL
app.use('/mysite1', function(req, res, next){ res.redirect('http://locahhost:5011/mysite2'); });
– Mukesh Sharma