Cloudflare Docs
Rules
Rules
Visit Rules on GitHub
Set theme to dark (⇧+D)

Create a redirect rule in the dashboard

​​ Prerequisites

The incoming traffic for the hostname referenced in visitors’ requests must be proxied by Cloudflare (also known as orange-clouded).

​​ Create a redirect rule

  1. Log in to the Cloudflare dashboard and select your account and domain.
  2. Go to Rules > Redirect Rules.
  3. Under Single Redirects, select Create Redirect Rule.
  4. Enter a descriptive name for the rule in Rule name.
  5. Under When incoming requests match, define the rule expression.
  6. Under Then, define the URL redirect settings for requests matching the rule expression.
  7. To save and deploy your rule, select Deploy. If you are not ready to deploy your rule, select Save as Draft.