INTEGRITY Cloudflare Docs

Rewrite URL query string

To rewrite a request to the /blog path to /blog?sort-by=date, create a URL rewrite rule with the following settings:

Text in Expression Editor:

http.request.uri.path == "/blog"

Text after Query > Rewrite to > Static:

sort-by=date

Additionally, set the path rewrite action of the same rule to Preserve so that the URL path does not change.