CF_SINGLE_REDIRECT
CF_SINGLE_REDIRECT
is a Cloudflare-specific feature for creating HTTP 301 (permanent) or 302 (temporary) redirects.
This feature manages dynamic "Single Redirects". (Single Redirects can be static or dynamic but DNSControl only maintains dynamic redirects).
Cloudflare documentation: https://developers.cloudflare.com/rules/url-forwarding/single-redirects/
dnsconfig.js
The fields are:
name: The name (basically a comment, but it must be unique)
code: Either 301 (permanent) or 302 (temporary) redirects. May be a number or string.
when: What Cloudflare sometimes calls the "rule expression".
then: The replacement expression.
NOTE: The features CF_REDIRECT
and CF_TEMP_REDIRECT
generate CF_SINGLE_REDIRECT
if enabled in CLOUDFLAREAPI
.
Last updated