add_redirect
Redirect HTTP traffic from a source domain to a destination URL with a configurable status code (301, 302, 307, or 308).
Instructions
Add an HTTP redirect route. from_host: domain to redirect (e.g. 'old.example.com'). to_url: destination URL. status_code: 301 (permanent), 302 (temporary), 307, or 308.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_url | Yes | ||
| from_host | Yes | ||
| server_name | No | ||
| status_code | No |