It is use to navigate new url from old one. For example if we want to migrate our old application to new one then we have to migrate our old site url to new url so in this case we can use this module .
node
express
querystring
-
Linux
operating system
Just run this command into your project directory.
npm install express-url-mapper
This module needs two parameters, first parameter is express instance and second is the list of the objects which have old, new url along with the redirection code. like:
[
{
oldUrl: "myApp/abc.html",
newUrl: 'myApp/xyz',
redirectionType: 301
}]
npm install express-url-mapper
It's open community, so all are welcome to contribute or open issue
|| suggestion
|| comments