Skip to main content

RedirectRule

Properties

PropertyTypeAttributesDescription
namestringRequired, IdentifierThe logical name of the redirect rule
redirectUrlstringRequiredThe target URL to redirect matching requests to
urlPatternstringRequiredURL pattern to match using * wildcards (e.g. example.com/old-page*)
zoneIdstringRequired, IdentifierThe zone ID this redirect rule applies to
descriptionstringHuman friendly description shown in the Cloudflare dashboard
enabledboolWhether the rule is enabled
pageRuleIdstringCloudflare page rule ID (output only)
priorityintPriority of the page rule (lower number = higher priority)
statusCodeintHTTP status code for the redirect (301 or 302)