Configuring URL forwarding or redirects with Cloudflare Page Rules

You can define a page rule to forward or redirect traffic to a different URL using the Rules app in the Cloudflare dashboard.

Page Rule subdomains require an "Orange Clouded" DNS record for the Page Rule to work. Page Rules won't apply to subdomains that don't exist in DNS or aren't being directed to Cloudflare.

To configure URL forwarding or redirects:

  1. Log into your Cloudflare account.
  2. Click the appropriate Cloudflare account for the domain where you want to add URL forwarding.
  3. Select Rules > Page Rules.
  4. Under Page Rules, click Create Page Rule. The Create Page Rule for <your domain> dialog opens.
  5. Under If the URL matches, enter the URL or URL pattern that should match the rule. 
  6. Next, click Add a Setting.
  7. Choose Forwarding URL from the drop down menu.
  8. Click Select Status Code and choose 301 (Permanent Redirect) or 302 (Temporary Redirect).
  9. Enter the destination URL.
  10. To finish, click Save and Deploy.

 

  • 1 Users Found This Useful
Was this answer helpful?