Docusaurus Plugin to generate client-side redirects.
This plugin only create redirects for the production build.
It is better to use server-side redirects whenever possible.
Before using this plugin, you should look if your hosting provider doesn't offer this feature.
Main usecase: you have
/myDocusaurusPage, and you want to redirect to this page from
Second usecase: you have
/myDocusaurusPage.html, and you want to redirect to this page from
For custom redirect logic, provide your own
Let's imagine you change the url of an existing page, you might want to make sure the old url still works:
It's possible to use a function to create the redirects for each existing path:
Finally, it's possible to use all options at the same time: