How to Choose Between _redirects and Bulk Redirects on Cloudflare

Migrating a blog or business site onto Cloudflare Pages or Cloudflare Workers Static Assets almost always brings a list of legacy URLs that must redirect cleanly to new paths. Cloudflare offers two built-in ways to handle those rules without spinning up origin servers: a plain-text _redirects file inside your repository, or account-level Bulk Redirects in the Cloudflare dashboard. Picking the wrong one leads to silent rule truncation, ignored redirects on dynamic routes, or painful cross-domain rules.

Editorial illustration comparing Cloudflare _redirects file limits with Bulk Redirects

Editorial illustration: keep _redirects for repo-tracked rules under 2,100 entries, and move large or cross-domain inventories to Bulk Redirects.

Summary

  • Per Cloudflare’s _redirects and migration documentation, a _redirects file supports up to 2,000 static redirects and 100 dynamic redirects (2,100 rules total), with a 1,000-character limit per line.
  • Put static redirects before dynamic redirects in _redirects: Cloudflare evaluates the file from top to bottom, and the topmost matching rule wins.
  • As Cloudflare Workers Static Assets redirects docs note, use Bulk Redirects whenever you exceed the 2,100-rule limit or need account-wide redirects across multiple domains.
  • Remember that static _redirects rules apply to static asset serving—routes handled by Pages Functions or custom Workers may need explicit redirect handling in code or edge-level Bulk Redirects.

How _redirects works in Cloudflare Pages and Workers Static Assets

A _redirects file lives in your build output directory (for example, dist/_redirects or _site/_redirects), keeping URL changes version-controlled right beside your Markdown posts and templates.

A typical file looks like this:

# Exact static redirects first
/old-about-page/ /about/ 301
/wp-content/uploads/brochure.pdf /assets/brochure.pdf 301

# Dynamic splat/placeholder rules below static ones
/news/:year/:slug /blog/:slug/ 301
/legacy/* /archive/:splat 302

Three rules from Cloudflare’s migration and limits documentation catch teams off guard:

  1. Order matters: If /news/* /blog/ 301 appears above /news/special-event /events/special/ 301, the wildcard matches first and the specific rule never fires.
  2. Line limits and silent drops: Malformed definitions are ignored, and each declaration has a 1,000-character cap.
  3. Rule caps: Exceeding 2,000 static or 100 dynamic rules breaks expectations fast during large WordPress-to-static migrations.

When Bulk Redirects is the better choice

Bulk Redirects lives at the Cloudflare account level (above any single Workers or Pages deployment) and lets you upload or manage redirect lists via CSV, the dashboard, or the API.

Switch to Bulk Redirects when:

  • You have more than 2,000 static or 100 dynamic URLs from a decade-old CMS migration.
  • You need cross-domain or apex-to-www redirects managed in one place across multiple hostnames.
  • Marketing or SEO teams need to add redirects without triggering a full site build and deploy.
  • Requests hit dynamic Functions or Worker routes before static asset lookup—Bulk Redirects runs at the edge before your Worker or origin handles the request.

Step-by-step: Plan a clean redirect migration

  1. Audit your old URLs before writing rules. Export your existing sitemap or analytics top-1,000 landing pages so you only carry forward URLs that actually receive traffic or backlinks.
  2. Sort _redirects strictly with exact paths on top and wildcards at the bottom. Add a simple CI or build-script check to count static vs. dynamic lines so you get an early warning before hitting the 2,000 / 100 ceiling.
  3. Avoid multi-hop redirect chains (A -> B -> C). Point every legacy URL directly to its final canonical destination (A -> C) with a 301 permanent status once verified (use 302 while testing).
  4. Verify live status codes with curl -I and check caching. If an old URL keeps returning a cached 404 or old destination after deploying, follow our guide on purging a stale page on Cloudflare and check how CDN-Cache-Control interacts with edge caching.
  5. Confirm DNS and HTTPS first. Redirects only execute reliably when the hostname resolves to Cloudflare properly and TLS is valid—if a hostname seems stuck, review debugging DNS propagation with dig and nslookup and enabling Cloudflare HSTS safely.

Common mistakes

  • Placing wildcard rules at the top of _redirects. Because Cloudflare evaluates top-to-bottom and stops at the first match, early wildcards shadow specific rules below them.
  • Creating trailing-slash redirect loops. Make sure your redirect destination matches your static host’s canonical URL format (for instance, /blog/post/ vs /blog/post) so Cloudflare does not bounce between two rules.
  • Expecting _redirects to intercept Pages Functions API endpoints. If a route is executed by a Function, static asset _redirects may not apply the way you expect; handle it in Bulk Redirects or inside the Function itself.

Why this matters

Broken redirects silently bleed search traffic and leave bookmarks returning 404 errors after a redesign. Knowing the exact boundary between _redirects and Bulk Redirects prevents last-minute surprises on launch day.

My Take

Use _redirects for clean, repo-tracked site moves under a few hundred rules—having redirects live in Git next to the pages they replace is hard to beat. The moment your migration list passes 1,500 URLs, spans multiple domains, or needs non-developer edits, move the list into Cloudflare Bulk Redirects instead of squeezing wildcards into _redirects.

Conclusion

Keep exact static rules above dynamic wildcards in _redirects, stay within Cloudflare’s 2,000 static / 100 dynamic limits, move larger or cross-domain redirect sets to Bulk Redirects, and test final 301 targets with curl -I right after deploying.

Sources