Skip to main content

Cloudflare Redirect Rules Generator

Runs in your browser Nothing stored Free, no signup

Paste old → new URLs and get Cloudflare redirect rules — as a Cloudflare Pages _redirects file, or a clean source/destination list to import as Bulk Redirects. Runs in your browser.

From = the old path on your site. To = the full destination URL.

Cloudflare Pages (_redirects)
/old-page  https://example.com/new-page  301

Cloudflare Pages: add to a _redirects file in your build output. For a normal (non-Pages) domain, paste these into a Bulk Redirect list or a Redirect Rule in the dashboard instead.

Migrating a site? Check for broken links & redirect chains.

Analyze any URL free

Edge redirects that keep your rankings

Cloudflare applies redirects at its edge, before the request reaches your origin — so a 301 is both fast and SEO-safe, forwarding visitors and crawlers and passing the old URL's ranking signal to the new one. On Pages, the _redirects file is all you need; on a proxied domain, use these pairs to seed a Bulk Redirect list.

Different stack? Use the Netlify or Vercel generator, or the general Apache / Nginx redirect generator.

Frequently asked questions

Cloudflare Pages vs a normal Cloudflare domain — which redirect method?

On Cloudflare Pages, use a _redirects file in your build output (same syntax this tool outputs). On a normal proxied domain, redirects live in the dashboard as Single Redirects, Bulk Redirects, or a Redirect Rule — you can use the generated source/destination pairs as your import list.

What is the difference between a Redirect Rule and a Bulk Redirect?

A Redirect Rule (single) is for one pattern, configured with an expression. Bulk Redirects handle large one-to-one lists (thousands of URLs) uploaded as a list — the right choice for a site migration. Both do server-side 301/302 at Cloudflare's edge, before the request reaches your origin.

Do Cloudflare redirects help SEO?

Yes. A 301 at the edge forwards visitors and crawlers and passes ranking signal to the new URL, and it responds fast because it never hits your origin. Prefer 301 for permanent moves; reserve 302 for temporary ones.

Why is my Cloudflare redirect not working?

Common causes: the rule order (rules evaluate top-down, first match wins), a page rule and a redirect rule conflicting, "preserve query string" not set when you need it, or a cached response — purge the cache after changing rules.

Related tools

This tool solves one thing.

Scan a live URL against 100 on-page checks — with the code to fix each issue.

Analyze any URL free