Hi, what is the best way to write a rule that matches both a trailing slash and query strings but not sub-directories? i.e.: domain.com/blog/ and domain.com/blog?utm_medium=social
A match for example.com/blog/?* doesn’t work? I’ve not tested it, so I’m just asking.
I’m trying to match all variations, so example.com/blog and example.com/blog/ wouldn’t be matched with the rule you suggested.
The best way would probably be to use Workers instead since it supports complex RegEx.
This topic was automatically closed after 14 days. New replies are no longer allowed.