hapi-permanent-redirect

1.0.1 • Public • Published

Hapi Permanent Redirect

Build Status Coverage Status NPM version Downloads

The purpose of this plugin is to provide a convenient way to do permanent redirects.

Registering the Plugin

var Hapi = require('hapi');
 
var server = new Hapi.Server();
 
server.register([
  {
    redirects: [{
      from: '/route1',
      to: 'route2'
    }, {
      from: '/route3',
      to: '/route4'
    }]
  }
], function (err) {
  // An error will be available here if anything goes wrong
});

Options

  • redirects Array of objects with a from and to key

/hapi-permanent-redirect/

    Package Sidebar

    Install

    npm i hapi-permanent-redirect

    Weekly Downloads

    13

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • philthelobster
    • ngnasr1123_lob
    • jayteelob
    • erik.forsman-lob
    • jkleung11
    • tanya.sah
    • hunteryoakum
    • rdimouro7373
    • lobstertroy
    • joshnkoy
    • michel_lob
    • haroutrs
    • kjones_lob
    • eamon-barisone
    • nathanielwaldschmidtlob
    • zach.reed
    • richpodrazalob
    • kencrim
    • jorgelob
    • nick-place-lob
    • andrew.guterres
    • hanqingchen-lob
    • juan.frissdekereki
    • mmorgan-lob
    • karankwatra-lob
    • joey-bates-lob
    • luke.birdeau
    • mg-lob
    • vmangwani
    • sachinlob
    • nick.perri
    • siddharthpant92
    • bethqiang
    • kplob
    • samkitsheth95
    • erin-doyle
    • jfdavidson
    • meussdorffer
    • shannamurry
    • amaan_lob
    • team.platform.lob.com
    • elijah-lob
    • jlowsley-lob
    • barnabygo
    • james.cho
    • douglaje
    • lob-owner
    • graeme.lowe.lob