Cloudflare Pages _redirects Simulator

Cloudflare Pages _redirects Tester & Simulator

Test Cloudflare _redirects splats (* -> :splat), placeholders (:id), default 302s, and 200 rewrites while catching static-after-dynamic traps and 2,000/100 limits.

Presets:
_redirects3 rules
Try:
301 PERMANENT1 hop
< 1ms local
Resolved Destination URL

https://example.com/articles/2026/edge-routing?utm_source=hn

Evaluation Trace

Hop-by-Hop & Exact Rule Priority Breakdown

3 rule checks
Hop 1https://example.com/blog/2026/edge-routing?utm_source=hn
301 REDIRECT
→https://example.com/articles/2026/edge-routing?utm_source=hn
Captures::splat = 2026/edge-routing
SKIP

Rule #1 (redirect) /old-post

Skipped: path "/blog/2026/edge-routing" did not match "/old-post"

SKIP

Rule #2 (afterFiles) /rss

Skipped: path "/blog/2026/edge-routing" did not match "/rss"

Cloudflare Pages _redirects Spec

Avoid Silent Truncation, Shadowed Paths & Unsupported Netlify Syntax

Test _redirects locally with a fast cloudflare pages _redirects tester. Track static/dynamic quotas, inspect top-down match priority, and export bulk URL audit tables.

Live Static / Dynamic Quota Meter

Monitors static (2,000), dynamic (100), total (2,100), and line-length (1,000 chars) quotas in real time.

Static-After-Dynamic Detector

Flags literal static rules placed beneath dynamic rules so static paths never burn your 100 dynamic cap.

Netlify vs Cloudflare Linter

Warns on 301! force flags, external 200 proxy URLs, query strings in source columns, and unsupported status codes.

Parser Constraints & Quotas

Avoiding Cloudflare Static-After-Dynamic Traps & Netlify Gotchas

Cloudflare Pages uses a compact _redirects format similar to Netlify’s syntax but enforces strict quotas. Use this cloudflare redirects simulator to audit every line before deployment.

Rule Ordering

Static-After-Dynamic Quota Trap

Group literal static paths above * splats or :param placeholders. Our cloudflare static after dynamic redirects limit detector warns whenever a static rule trails a dynamic rule, protecting your 2,000 static / 100 dynamic quotas.

Auto-sort from Vercel with the vercel.json to Cloudflare redirects converter or compare in our vercel.json redirects tester online.

# Good: static rules first (2,000 quota)
/old-about  /about        301
/rss        /api/feed.xml 200

# Dynamic splat & placeholder rules last (100 quota)
/blog/*     /posts/:splat 301

Wildcards & Linting

Splat Captures & Netlify Syntax Warnings

Use this cloudflare _redirects splat tester to verify /prefix/* captures into :splat and single-segment :id placeholders.

The linter also flags Netlify 301! force flags, source query strings, and external 200 URLs—or test multi-platform configs on the redirects tester online.

# Invalid on Cloudflare Pages (flagged):
/old-page   /new-page               301!  # Force flag unsupported
/proxy/*    https://api.example.com 200   # External 200 unsupported

Syntax Reference

Patterns, Status Codes & Matching Semantics

Pattern / SyntaxBehaviorExample
/old /new 301Static literal redirect (defaults to 302 if omitted)
/blog/* /posts/:splat 301Wildcard splat capturing trailing segments into :splat
/users/:id /profile?uid=:id 302Single-segment placeholder mapped to path or query
/app /v2/index.html 200Same-site rewrite (relative paths only on Cloudflare Pages)

FAQ

Common Questions & Edge Cases

What are Cloudflare Pages _redirects rule and line limits?

Cloudflare Pages allows up to 2,000 static rules and 100 dynamic rules (2,100 total), with 1,000 characters max per line.

What is the Cloudflare static after dynamic redirects limit trap?

Because _redirects evaluates top-down, static rules placed below * or :param lines can count toward the 100 dynamic rule quota and trigger truncation.

What status code applies if omitted in _redirects?

Cloudflare Pages defaults omitted status codes to 302. Specify 301 or 308 explicitly for permanent SEO redirects.

Does Cloudflare Pages _redirects support external 200 proxies?

No. 200 rewrites only work for relative paths on the same Pages project. External proxies require Cloudflare Workers.