Skip to content

Wintersmith plugin that provides url redirections where headers cannot be modified

Notifications You must be signed in to change notification settings

jnordberg/wintersmith-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wintersmith-redirect

Page redirects where you can't modify headers. e.g. on GitHub pages.

NOTE If you have the ability modify headers (a .htaccess or similar) do a 301 redirect.

Installing

Install globally or locally using npm

npm install [-g] wintersmith-redirect

or

wintersmith plugin install redirect

and add wintersmith-redirect to your config.json

{
  "plugins": [
    "wintersmith-redirect"
  ]
}

Usage

Add a redirects object to your config.json like so:

{
  "redirects": {
    "old/page.html": "new/page.html",
    "gone.html": "http://example.com"
  }
}

Running tests

npm install
npm test

About

Wintersmith plugin that provides url redirections where headers cannot be modified

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published