Free online Cloudflare redirect generator. Create Page Rules, URL forwarding rules, and Transform Rules for your Cloudflare site. Support for dynamic redirects, bulk redirects, and Workers.
Cloudflare offers three main ways to implement redirects:
301
- Permanent redirect (best for SEO)302
- Temporary redirect307
- Temporary redirect (preserves method)308
- Permanent redirect (preserves method)Here are some common redirect patterns:
example.com/old → example.com/new
- Simple redirectexample.com/blog/* → blog.example.com/*
- Subdomain migrationhttp://* → https://*
- HTTPS upgrade*.old.com/* → *.new.com/*
- Domain migrationCloudflare redirects are rules that let you forward traffic from one URL to another. They can be implemented using Page Rules, Transform Rules, or Workers. Page Rules are best for simple redirects, Transform Rules for bulk redirects, and Workers for dynamic redirects requiring custom logic.
Page Rules are simpler to set up and ideal for specific URL redirects, but you're limited to 125 rules (Enterprise plan). Transform Rules are more powerful, support bulk redirects with dynamic matching, and have a higher limit, but they're only available on Business and Enterprise plans.
Our tool supports all Cloudflare redirect types including permanent (301) and temporary (302) redirects, URL forwarding, path forwarding, wildcard redirects, and dynamic redirects. You can generate configurations for Page Rules, Transform Rules, or even Worker scripts.
For Page Rules, go to your Cloudflare dashboard > Rules > Page Rules and add the generated rules. For Transform Rules, go to Rules > Transform Rules. For Workers, you can copy the generated code to a new Worker in your Cloudflare dashboard.
Yes, Cloudflare supports wildcards (*) in Page Rules and more advanced pattern matching in Transform Rules. You can use these to match multiple URLs with a single rule. Workers provide the most flexibility with full JavaScript-based matching.
Use 301 redirects for permanent changes, keep rules organized from specific to general, use Transform Rules for bulk redirects, monitor your rule usage limits, and test thoroughly before implementing. Also consider using Workers for complex redirect logic.