Cloudflare Docs
Http-Applications
Visit HTTP Applications on GitHub
Set theme to dark (⇧+D)

Manage routing rules

Routing rules determine which version of your configuration settings is applied to incoming traffic.

Create routing rules

To create a routing rule:

  1. Log in to the Cloudflare dashboard.
  2. Select your account.
  3. Go to HTTP Applications.
  4. Select an existing application.
  5. Click Routing Rules.
  6. Click Create Routing Rule.
  7. Fill out the following information (the Zone will be automatically selected based on your application):
    • Rule name: Provide a descriptive name.
    • Rule Type: Choose Staging or Production (Staging rules only run on requests sent to specific IP addresses).
    • Application version: Choose a version of your application to apply to the selected zones.
  8. Click Create.

Edit routing rules

To edit a routing rule:

  1. Log into the Cloudflare dashboard.
  2. Select your account.
  3. Go to HTTP Applications.
  4. Select an existing application.
  5. Click Routing Rules.
  6. Click Edit.
  7. Update settings as needed.
  8. Click Save.

Delete routing rules

To delete a routing rule:

  1. Log in to the Cloudflare dashboard.
  2. Select your account.
  3. Go to HTTP Applications.
  4. Select an existing application.
  5. Click Routing Rules.
  6. Click Delete.