CF_SINGLE_REDIRECT
Last updated
Last updated
CF_SINGLE_REDIRECT
is a Cloudflare-specific feature for creating HTTP redirects. 301, 302, 303, 307, 308 are supported.
Typically one uses 302 (temporary) or (less likely) 301 (permanent).
This feature manages dynamic "Single Redirects". (Single Redirects can be static or dynamic but DNSControl only maintains dynamic redirects).
Cloudflare documentation:
The fields are:
name: The name (basically a comment, but it must be unique)
code: Any of 301, 302, 303, 307, 308. May be a number or string.
when: What Cloudflare sometimes calls the "rule expression".
then: The replacement expression.