Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

A simple redirect server used for redirecting old to new sites using a csv file ↔️

License

Notifications You must be signed in to change notification settings

RegionHalland/simple-redirect-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-redirect-server

A simple redirect server used for redirecting old to new sites using a csv file. See example folder for more information.

Install

$ npm install @region-halland/simple-redirect-server

Usage

var srs = require('@region-halland/simple-redirect-server');

//Init server
srs.init({
    portListen: 1337, //HTTP server will listen on this port
    httpStatusCode: 301, //This will be the http code used for redirections
    csvFile: __dirname + "/redirects.csv" //Path to csv file used for redirections
});

Example

See example folder for an example.

Q&A

How should my .csv file be structured to work?

See the redirect.csv file inside example folder.

License

GPL-2.0 © Region Halland

About

A simple redirect server used for redirecting old to new sites using a csv file ↔️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published