npm_create_redirection_host
Create a redirection host to forward one domain to another, setting the HTTP redirect code (301/302) and preserving the URL path.
Instructions
Create a redirection host that forwards one domain to another.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| enabled | No | ||
| domain_names | Yes | ||
| preserve_path | No | Preserve the URL path when redirecting | |
| block_exploits | No | ||
| certificate_id | No | ||
| forward_scheme | Yes | ||
| advanced_config | No | ||
| forward_http_code | Yes | HTTP redirect code, normally 301 or 302 | |
| forward_domain_name | Yes | Destination domain, e.g. example.com |