Hi there, New to cloudflare. I am trying to create a redirect rule where for example a specific url link https://suba.example.com?property=1234A would go to https://subc.example.com/property/1234A but I am unsuccessful. can anyone help me with a step by step process
If you want to match on any property value, then you need to change contains operator to wildcard; otherwise, contains will interpret * literally
This process will become much easier and more intuitive once simplified URL with wildcard support is released for Single Redirects in the upcoming days.
If you’re trying to capture and expand multiple variables, your filter expression could be something like (http.request.full_uri wildcard "https://suba.domain.com/thisredirects?*property=*group=*").
Your action expression can then reference captured groups in the order they appear in the filter: wildcard_replace(http.request.full_uri, "https://suba.domain.com/thisredirects?*property=*group=*", "https://subc.domain.com/list/example/${2}?group=${3}")