Skip to content
Cloudflare Docs

Manage

You can manage Page Rules in the Cloudflare dashboard or via API.

Create a page rule

To create a page rule in the dashboard:

  1. Log in to the Cloudflare dashboard, and select your account and domain.

  2. Go to Rules > Page Rules.

  3. Select Create Page Rule.

  4. For URL, enter the URL or URL pattern that should match the rule (more details about wildcard matching).

  5. For Pick a Setting, select a Cloudflare setting to adjust. If desired, select Add a Setting to adjust multiple Cloudflare settings with the same rule.

  6. In the Order dropdown, specify the desired order: First, Last or Custom.

  7. To save and deploy your rule, select Save and Deploy Page Rule. If you are not ready to deploy your rule, select Save as Draft.

    If you are matching a hostname in your rule expression, you may be prompted to create a proxied DNS record for that hostname. Refer to Troubleshooting for more information.

For ideas about what rules you can create, refer to recommended rules.

Edit a page rule

To edit a page rule in the dashboard:

  1. Log in to the Cloudflare dashboard, and select your account and domain.

  2. Go to Rules > Page Rules.

  3. For a specific rule:

    • To enable or disable the rule, select the on/off toggle.
    • To modify the URL pattern, settings, and order, select Edit (wrench icon). Then, enter the information you want to change.

Delete a page rule

To delete a page rule in the dashboard:

  1. Log in to the Cloudflare dashboard, and select your account and domain.
  2. Go to Rules > Page Rules.
  3. For a specific rule, select X. Then, select Delete.