What are Page Rules?
Page Rules give you granular, URL-based control of Cloudflare’s settings. The most important thing to know about Page Rules is that only one Page Rule will trigger on a URL, so it’s important to sort your Page Rules in priority order, and keep your most specific Page Rules at the top.
What patterns are allowed in Page Rules?
If you are using a Forwarding Page Rule, then you can map those wildcards to variables. In the forwarding URL, you can specify $1, $2 and so on that match the wildcards in the original URL, in order from left to right.
For example, you could forward http://*.example.com/* to http://$2.example.com/$1.jpg. This rule would match http://cloud.example.com/flare, which would end up being forwarded to http://flare.example.com/cloud.jpg.
Some helpful tips:
If you want to match both http and https, it is enough to write example.com. You don’t need to do *example.com.
If you want to match every page on a domain, you need to write example.com/*. It is not enough to write example.com.
Refer to Understanding and Configuring Cloudflare Page Rules for more details on Page Rule patterns.
Rules to try for complex old URLs
mydomain.com/*/*/*/*and redirect as
301permanent redirect to
This will take the old: https://mydomain.com/2021/02/15/post-title and and pick up the 4th part of the URL indicated by the
*redirect it to Super URL: https://domain.com/blog/post-title
If your DNS is not already set up with Cloudflare, here is how to set up redirection using Cloudflare:
If your domain is already connected to Super then you will not need to make any change at the Super end.