gatsby-plugin-meta-redirect
Generates meta redirect html files for redirecting on any static file host.
Install
npm install --save gatsby-plugin-meta-redirect
or
yarn add gatsby-plugin-meta-redirect
How to use
// In your gatsby-config.jsplugins: `gatsby-plugin-meta-redirect` // make sure to put last in the array;
Redirects
You can create redirects using the createRedirect
action.
An example:
;;
That will generate the following html files:
/old-url/index.html
:
and
/url/index.html
: