redirect
Last updated
Was this helpful?
Last updated
Was this helpful?
Redirects specify how URLs may need to be rewritten. Each Redirect has a name, a regex that matches the requested URL, a to indicating how the url should be rewritten, and a flag to indicate how the redirect will be handled by the proxying layer.
name
Common name for this redirect, e.g. "force-https".
from
Regex pattern to match against incoming request URLs. Capture groups set here can be used in the field.
to
redirect_type
One of "permanent" or "temporary". Selection "permanent" will set the response code to 301, "temporary" will be 302.
header_constraints
New URL of the redirect. Can be direct string (") or reference capture groups from the field ("").
Array of that must match for the redirect to take effect.