Cloudflare Docs
Rules
Rules
Edit this page
Report an issue with this page
Log into the Cloudflare dashboard
Set theme to dark (⇧+D)

Redirects

URL forwarding, also known as URL redirection, navigates the user from a source URL to a target URL with a specific HTTP status code.

Use the following Cloudflare products to perform URL redirects, according to your use case:

  • Single Redirects: Allow you to create static or dynamic redirects at the zone level. Dynamic redirects are advanced URL redirects, such as redirects based on the source country of requests. Depending on your Cloudflare plan, you can use regular expressions to define the redirect URL.

  • Bulk Redirects: Allow you to define a large number of redirects at the account level. These URL redirects are essentially static — they do not support string replacement operations or regular expressions. However, you can configure parameters that affect the redirects’ URL matching behavior and their runtime behavior.

​​ Availability

Single Redirects and Bulk Redirects are available on all Cloudflare plans. The exact quotas and features depend on your plan.

​​ Bulk redirects

FreeProBusinessEnterprise

Availability

YesYesYesYes

Bulk Redirect Rules

15151550

Bulk Redirect Lists

55525

URL redirects across lists

2050050010,000

For URL redirects across lists, this table provides the default quota for the Enterprise plan. Bulk Redirects supports several million URL redirects — to get more redirects, contact your account team.

Bulk Redirects features and quotas are per account and they depend on the highest Cloudflare plan on your account.

​​ Single Redirects

FreeProBusinessEnterprise

Availability

YesYesYesYes

Number of rules

102550125

Regex support

NoNoYesYes

Single Redirects features and quotas are per zone and depend on the zone plan.

​​ Execution order

The execution order of Rules features is the following:

The different types of rules listed above will take precedence over Page Rules. This means that Page Rules will be overridden if there is a match for both Page Rules and the Rules products listed above.

Generally speaking, for non-terminating actions the last change made by rules in the same phase will win (later rules can overwrite changes done by previous rules). However, for terminating actions (Block, Redirect, or one of the challenge actions), rule evaluation will stop and the action will be executed immediately.

For example, if multiple rules with the Redirect action match, Cloudflare will always use the URL redirect of the first rule that matches. Also, if you configure URL redirects using different Cloudflare products (Single Redirects and Bulk Redirects), the product executed first will apply, if there is a rule match (in this case, Single Redirects). Refer to the Phases list for the product execution order.

​​ Troubleshooting

When troubleshooting URL redirects, use Cloudflare Trace Beta to determine if a rule is triggering for a specific URL.