Help Redirect Rules

Hello,

I’m trying to create a redirection rule but I would like to add a wildcard point (*), so that when there is a variation between these terms it applies the rule anyway.

In “Page Rules” option I can do this, but not here, does anyone know a way to do this?

What’s an example path you want to match?

There’s no regex except in Business or Enterprise plans, but plenty of other operators you use.

I would try to break down the expression as much as possible.

You want it to only happen on a specific domain (mydomain.com, the apex) and for paths ending in page?

Do you want the query string contain page?

You have fields for path, query string, and hostname, as well as a few others: Fields reference · Cloudflare Ruleset Engine docs

You have equals, contains, starts with, ends with, etc. They’re supported on all fields via “Edit Expression” even if not through the visual expression editor.

You should be able to make what you want. It gets more complex if you want to preserve the path in a specific way.

1 Like

Thank you, this helped me in parts, but it was enough.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.