Using page rules to perform redirects

Introduction to redirecting with page rules video

Specific Use Cases

You may find a specific tutorial for your use case here, if not then below is some general information and guidance:

:orange: DNS Records for Page Rules

From the Cloudflare Help Center:

Remember that any Page Rule subdomains must be resolving to Cloudflare in order to work. Subdomains that don’t exist in DNS or aren’t being directed to Cloudflare won’t have Page Rules applied, so you’ll need an “Orange Clouded” DNS record for the subdomain for the Page Rule to work.


You will need a record in the DNS app of your Cloudflare dashboard for the host you are trying to redirect from, set to :orange:.

For example:
If I wanted to redirect all users from with a page rule then I would need to add a DNS record for and set it to :orange:. I would recommend creating an A record for the host, pointing to
i.e. this record:

replacing redirect with the subdomain you wish to redirect from.

What is

The basic answer: is an illustrative IP address often used for router setups on local networks etc. I doesn’t ‘go’ anywhere!

The official answer: is in the block. is assigned as
“TEST-NET-1” for use in documentation and example code. It is often used in conjuction with domain names or in vendor and protocol documentation. Addresses within this block do not legitimately appear on the public Internet and can be used without any coordination with IANA or an Internet registry.

Other Resources

Support article explaining the different variables you can use within your forwarding page rules:

Tutorial covering the use of wildcards to match patterns when using page rules:

Community Tip on page rule best practices:

Tutorial Reference: CT-26

Reviewed: 05/20

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here. If there is a tutorial you would like to see, you can request one here.

If you would like to provide any feedback on this tutorial, please post in the #Meta category, tag your post #TutorialFeedback and let us know the Tutorial Reference above.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community from people in the know that may help you with your issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting

Forward A Subdomain To Discord
301 redirect question
Redirect DNS record
URL Forwarding: non-unique match wildcard redirect
Using page rule without hosting
Point subdomain to IP and port
Domain tools typical to registrars
Cloudflare A record
CNAME and A record values for domain forwarding
DNS Validation Error (Code: 1004): Content for A record is invalid. Must be a valid IPv4 address (Code: 9005)
What's the bare minimum DNS record configuration required for Cloudflare to redirect to a www host elsewhere?
Redirect not working?
Is this possible with Page Rules?
Forwarding URL Page Rule Proxy Best Practice
How set domain redirect?
Is this CNAME record correct? It doesn't seem to be working
How i can redirect subdomain to website
Naked domain points to Heroku instead of Clickfunnels
Www redirect to non www
How to setup redirect of blog posts on subdomain to posts on main domain with Cloudflare DNS?
A record name for worker
Community Tip - Best Practices For Page Rules
Forwarding to
Redirect does not work
How to change google suite services address
IP Address?
How can I reverse proxy (or something similar) something on a subfolder?
Redirects issue after adding cloudflare
Webhop & CName
Webhop & CName
My page rulel doesn't work
How to change DNS for root domain to Cloudflare
Page Rule 301 Forwarding URL working for http but not https
Page rule subdomain redirect not working
Poor Support
Full redirect not working
Implement 301 subdomain redirect with Cloudflare
301 redirect not working
Issue adding aliases through Cloudflare
Does CloudFlare DNS hosting provide 301 web forward?
Another domain
Siteground told me that i needed to change my url to www for cloudflare to work
Redirecting to different domain
My subdomain hosted at Bluehost is not working
Newbie here. Forwarding related question
Redirecting from godaddy domain to another website