Reference guide · cloudflare · Published 2026-08-16 · 4 min read

Redirect rules on Cloudflare

Cloudflare redirect rules: Single and Bulk Redirects, dynamic wildcard rules, plan limits and when a redirect should stay at the origin.

Two products for redirection

Cloudflare's redirect tooling now splits into Single Redirects and Bulk Redirects, both in the Rules product, and both free on every plan. They replace the older Page Rules 301 approach for new work.

Single RedirectsBulk Redirects
ScopePer zone (one domain)Per account (many zones)
MatchingStatic URL or a wildcard patternA large uploaded list of source to target
Dynamic pathYes (rewrite with ${1} placeholders)No (static only)
RegexBusiness+No
Status301/302/307/308301/302/307/308

Use Single Redirects for a handful of rules that can rewrite the path; use Bulk Redirects when you have thousands of old URLs to map and want to keep them in a spreadsheet, CSV, or API list rather than a pile of zone rules.

The dynamic rule that covers most cases

A classic redirect rule ("old folder to new root") is a Single Redirect with a wildcard:

The dashboard's "Create rule > Redirect Rule" flow builds these without writing code, and the expression builder accepts either a wildcard pattern or a custom filter expression. The equivalent dynamic rule with a custom expression (where you need more than a folder swap) uses the request fields directly.

When to use Bulk Redirects

Bulk Redirects read from uploaded lists, with limits per account across all lists (Free: 10,000, Pro: 25,000, Business: 50,000, Enterprise: 1,000,000 URL redirect entries). They are static: one source to one target, optionally with query-string preservation and host-weighting. That fits a migration redirect map (thousands of rows exported from a spreadsheet), where you do not need per-row logic.

Plan limits to know

Redirection order (and the gotcha)

Rules run in a lightly numbered order; a redirect rule matching a request forces the response before later rules (like security or header transforms) normally run. The documented gotcha: a Bulk Redirect runs after WAF. If a firewall/rate-limit rule blocks the request first, the bulk redirect never fires, and analytics still record the WAF event. Single Redirect rules run earlier in the pipeline. So if a redirect must fire even under a block, prefer a Single Redirect or review the WAF rules that could swallow the request.

Do not use Cloudflare redirect rules to replace origin 301 logic wholesale

Redirect rules are ideal for maintenance, launch-era URL changes, and domain moves. They are not a place to offload every 301 a CMS or framework handles correctly already, because:

Keep one owner for the redirect map (the redirect map for migrations article) and implement the parts that need the widest coverage at the edge where it is cheapest.

Test and verify

Deploy the rule, then hit one matching URL and read the response line. Cloudflare's "Test" tab on a rule you are editing is also available. Confirm the status code (301 for a permanent move, 308 to preserve HTTP method), and that the rule survives an origin outage (an edge redirect answers without the origin at all, which is the point of putting the rewrite at the edge). For a wildcard pattern, test both a match and a near-miss (an extra segment or a missing slash) to catch a silent miss like /folder without the trailing slash not being captured.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services