Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REDIRECT SERVER

Simply NextJS project for redirecting requests to another uri.

Usage

Set as environment variable:

TO_URI=https://<uri>.com
or 
ALL_TO_URI=https://<uri>.com

TO_URI SAMPLE

http://old.domain.com/<slug*> -> <TO_URI>/<slug*> http://old.domain.com/ -> <TO_URI>/

ALL_TO_URI SAMPLE

http://old.domain.com/<slug*> -> <ALL_TO_URI> http://old.domain.com/ -> <ALL_TO_URI/

HOST_URIS SAMPLE

Per-host redirects for a single deployment serving multiple domains. Set a JSON map of host -> destination (matched by the request host header, evaluated before TO_URI/ALL_TO_URI):

HOST_URIS={"builders.tutellus.com":"https://tutellus.com/builders"}

http://builders.tutellus.com/<slug*> -> https://tutellus.com/builders http://builders.tutellus.com/ -> https://tutellus.com/builders

Releases

Packages

Used by

Contributors

Languages