Redirect to another path in Node JS route
<p>In Node Js route.js when user try to open </p>

<p><code>app.use('/demo1', require('express').static(__dirname + '/demo1'));</code></p>

<p>then i want to redirect to</p>

<p><code>app.use('/demo2', require('express').static(__dirname + '/demo2'));</code></p>

<p>like
In the browser user type
<a href="http://locahhost:5010/demo1" rel="noreferrer">http://locahhost:5010/demo1</a> this URL</p>

<p>but it will open 
<a href="http://locahhost:5010/demo2" rel="noreferrer">http://locahhost:5010/demo2</a> this URL</p>