metalsmith-redirect
metalsmith-redirect copied to clipboard
Can re-direct from a prefix?
I may not be understanding this plugin altogether correctly, but I do enjoy using this plugin.
But, my issue is, we have some documentation that has changed location (we changed the name of our app).
How do I use that app name in a URL as a prefix for all the other URLs that are in that directory.
For example, say I have this app:
http://www.example.com/docs/cool-app/
We renamed cool-app to professional-app, so I know this will work if I use a redirect here:
http://www.example.com/docs/professional-app/
BUT, we moved everything in /cool-app/
to /professional-app/
.
Without having to make many redirects for every sub directory/child page, is there a way with this plugin to have everything from
http://www.example.com/docs/cool-app/*
go to http://www.example.com/docs/professional-app/*
Like:
http://www.example.com/docs/cool-app/v1/install
redirect to http://www.example.com/docs/professional-app/v1/install
or
docs/cool-app/v1/release-notes/patch-1
to /docs/professional-app/v1/release-notes/patch-1
Thank you.