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
Settings
Examples
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
Cache Rules
External link icon
Open external link
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: Page Rules
Page Rules
Manage
Expand: How to
How to
URL forwarding
Override URL or IP address
Rewrite Host headers
Expand: Reference
Reference
Settings
Additional reference
Wildcard matching
Recommended rules
Expand: Troubleshooting
Troubleshooting
General
Billing and subscription
Expand: Reference
Reference
Rules language
External link icon
Open external link
Troubleshooting
Edge Side Code deprecation
Page Rules migration guide
Changelog
Edit
Edit this page
Issue
Report an issue with this page
Log in
Log into the Cloudflare dashboard
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
Page Rules
Reference
Reference
Settings
Additional reference
Wildcard matching
Recommended rules