Skip to content

johno/gatsby-plugin-redirects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-redirects

Manage redirects from a single file for static hosting.

If you're using a hosting provider that doesn't offer built in redirect support you can use this plugin to create static HTML files with the redirect meta tag.

Installation

npm install --save gatsby-plugin-redirects

Usage

// gatsby-config.js
module.exports = {
  plugins: [
    'gatsby-plugin-redirects'
  ]
}

Then create a redirects.json file in the root of your project:

[
  {
    "from": "/old/path",
    "to": "/new/path"
  }
]

Related

License

MIT

About

Manage redirects from a single file for static hosting

Resources

License

Stars

Watchers

Forks

Packages

No packages published