cf_create_redirect
Create a dynamic redirect at the Cloudflare edge for renamed or migrated URLs. Validates target reachability, prevents loops and duplicates, and supports dry-run preview.
Instructions
Create one single (dynamic) redirect at the Cloudflare edge (e.g. a 301 for a renamed/migrated URL). Gated: requires SEO_MCP_ALLOW_DESTRUCTIVE=true. Validates the target is reachable (no redirecting to a dead URL), refuses loops and duplicates, and supports dry_run to preview the rule first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone hostname. Defaults to the configured CF_ZONE. | |
| source | Yes | Absolute source URL to redirect FROM (exact full-URI match). | |
| target | Yes | Absolute target URL to redirect TO. | |
| dry_run | No | Preview the rule that would be created without writing it (default false). | |
| status_code | No | 301 (default, permanent), 302/307 (temporary), or 308. | |
| skip_preflight | No | Bypass the target-reachability pre-flight (default false). | |
| preserve_query_string | No | Carry the original query string to the target (default true). |