I’m trying to add a Cloudflare URL Rewrite Transform Rule so that users that come to my blog using this link:
https://example.com/myfirstblog (dynamic path) get redirected to
If the user visits:
https://example.com/myfirstblog I would like them to get redirected to
https://example.com/?blogPage=myfirstblog . The
myfirstblog could be any other path as well, and it should get redirected to the query param.
I’ve tried looking at the docs and using the below expression in the expression editor, but to no avail.
(http.request.uri.path ne "" and not http.request.uri.path contains "/static")