How to Create a Redirect Rule

  1. Cloudflare dashboard → target domain
  2. Left menu: “Rules” → “Redirect Rules”
  3. Click “Create rule”

Redirect an Old URL to a New One

Condition: URI Path → equals → /old-page

Action: Static redirect → https://example.com/new-page → 301

Status Code Reference

CodeMeaning
301Permanent redirect
302Temporary redirect

Common Pitfalls

  • Rule order matters — rules are evaluated top to bottom
  • The free plan allows up to 10 redirect rules
  • If “Always Use HTTPS” is enabled, an HTTP→HTTPS redirect rule is unnecessary

For more complex redirect logic that can’t be handled with rules, Cloudflare Workers Introduction gives you full flexibility with JavaScript.

  • Fiverr - Find freelance developers and tech experts