Text in Expression Editor:
Text after Query > Rewrite to… > Static:
Create a transform rule to rewrite the request path from /blog
to /blog?sort-by=date
.
To rewrite a request to the /blog
path to /blog?sort-by=date
, create a rewrite URL rule with the following settings:
Text in Expression Editor:
Text after Query > Rewrite to… > Static:
Additionally, set the path rewrite action of the same rule to Preserve so that the URL path does not change.