Skip to content

Redirects users while attempting to preserve the desired page

License

Notifications You must be signed in to change notification settings

Huskydog9988/simple-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Redirect

Permanently redirects users from the current URI to the new one.

Not only does it redirect them, but attempts to preserve their desired page during the redirect. For example, a user visting https://example.com/home, would be redirected to https://example2.com/home. This enables quick and dirty hostname migrations with minimal impact to users.

Environment Variables

Variable Description
REDIRECT_To (Required) Specifies hostname to redirect too. (Should be no trailing /)
PORT Changes the port the server runs on
PERMANENT Whether the redirect should be permanent or not