Using wildcards in Page Rules to match multiple top-level directories

What is the name of the domain?

What is the issue you’re encountering

I am trying to create a page rule using wildcards to match multiple top-level directories that share a common subdirectory, such as: sample.com/test01/forms/ sample.com/nlafns/forms/ sample.com/pattern/forms/ I used the following rule: *sample.com/forms/ However, I am unsure if this rule will correctly apply to all paths, or if I need to create individual rules for each directory.

What steps have you taken to resolve the issue?

I checked the Cloudflare documentation on wildcard usage in Page Rules but couldn’t find clear guidance on whether this setup would work across multiple top-level directories. It’s possible I might have overlooked something, but I wasn’t able to confirm the correct approach.

It applies to multiple levels of directories, what you have will work. * wildcard accepts anything, including /

Thank you for the quick response!

So, to confirm, by setting a rule like:

*sample.com/*forms/*

the rule will apply to all paths like:

sample.com/test01/forms/
sample.com/nlafns/forms/
sample.com/pattern/forms/

However, I have a concern. Until yesterday, I had a rule in place for *sample.com/wp-admin/ with Cache Level set to “Bypass” and the priority set to 1.

Despite this, I noticed that caching still seemed to be active within the wp-admin area, as I observed certain cached functionality within the admin, which only reflected changes after manually purging the cache in Cloudflare.

How should I configure the rules to prevent this from happening?

Additionally, is there a way to check which pages are being cached and which are bypassed in Cloudflare?