How to transform URL to add query string

What is the name of the domain?

What is the issue you’re encountering

How to transform URL to add query string

What steps have you taken to resolve the issue?

I want to transform URLs as follows:
Incoming: mydomain.com/*/page/abc123
Transformed: mydomain.com/${1}/page-handler/?id=abc123

I’ve tried to do this under Rules–>Transform Rules by putting the Incoming string into Target Path and the Transformed string into Rewrite To, but this doesn’t work.

How do I make this transformation work?

Path and query string are two separate inputs in Transform Rules, so you will need to do something like this:

  • If incoming requests match…
  • Then…
    • Set Rewrite parameters
      • Path > Rewrite to… > Dynamic: wildcard_replace(http.request.uri.path, "/*/page/*", "/${1}/page-handler/")
      • Query > Rewrite to… > Dynamic: wildcard_replace(http.request.uri.path, "/*/page/*", "id=${2}")