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.
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 |