Skip to content

Express application that redirects all the requests to a new domain preserving the path

Notifications You must be signed in to change notification settings

germanattanasio/express-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express redirect

Express application that redirects all the requests to a new domain.

Example

{domain1}/path/to/resource to
{domain2}/path/to/resource

Currently being used to redirect

https://watson-api-explorer.mybluemix.net/apis/discovery-v1 to
https://watson-api-explorer.ng.bluemix.net/apis/discovery-v1

{domain2} can be changed using the APP_DOMAIN environment variable.

Getting Started

npm install
npm start

Open http://localhost:3000 in a browser

LICENSE

MIT

About

Express application that redirects all the requests to a new domain preserving the path

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published