Skip to content
Cloudflare Docs logomark
Cloudflare
Docs
Rules
Navigation menu icon
Open external link
Cloudflare Docs logomark
Cloudflare
Docs
Rules
Dropdown icon
Rules menu
Cloudflare homepage
Overview
Expand: Transform Rules
Transform Rules
Expand: Rewrite URL
Rewrite URL
Create a rule in the dashboard
Create a rule via API
URL rewrite examples
Expand: Reference
Reference
URL rewrite parameters
Available fields and functions
Expand: Modify request header
Modify request header
Create a rule in the dashboard
Create a rule via API
Request header modification examples
Expand: Reference
Reference
Format of header names and values
Available fields and functions
API parameter reference
Expand: Modify response header
Modify response header
Create a rule in the dashboard
Create a rule via API
Response header modification examples
Expand: Reference
Reference
Format of header names and values
Available fields and functions
API parameter reference
Expand: Managed Transforms
Managed Transforms
Configure Managed Transforms
Available Managed Transforms
Work with Transform Rules
Troubleshooting
Expand: URL normalization
URL normalization
How it works
Configure in the dashboard
Available settings
Expand: Redirects
Redirects
Expand: Single Redirects
Single Redirects
Create rule in the dashboard
Create rule via API
Create rule using Terraform
Example rules
Available settings
Expand: Bulk Redirects
Bulk Redirects
Concepts
How it works
Create in the dashboard
Create via API
Use cases
Expand: Reference
Reference
URL redirect parameters
Supported URL components
Available fields and functions
CSV file format
API JSON objects
FAQ
Expand: Origin Rules
Origin Rules
Create a rule in the dashboard
Create a rule via API
Terraform example
Available settings
API parameter reference
FAQ
Expand: Configuration Rules
Configuration Rules
Create a rule in the dashboard
Create a rule via API
Terraform example
Available settings
Expand: Compression Rules
Compression Rules
Create a rule in the dashboard
Create a rule via API
Examples
Available settings
Expand: Snippets
Snippets
Create in the dashboard
Expand: Custom error responses
Custom error responses
Create via API
Parameters
Error tokens
Expand: Reference
Reference
Edge Side Code deprecation
Give Feedback
GitHub icon
Visit Rules on GitHub
Search icon (depiction of a magnifying glass)
Light theme icon (depiction of a sun)
Dark theme icon (depiction of a moon)
Set theme to dark (⇧+D)
↑ Top
Products
Rules
Reference
Reference
Refer to the following pages for more information about Rules:
Edge Side Code deprecation