Changing URL params to query params

I’m trying to add a Cloudflare URL Rewrite Transform Rule so that users that come to my blog using this link: (dynamic path) get redirected to

If the user visits: I would like them to get redirected to . 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")

Do you want a redirect (HTTP 30X status code), or do you just want to fetch the content from the origin on the query string URL, but leave the non-query string in the URL?

1 Like

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