Skip to content

Request Rewrite Phase

The Request Rewrite phase allows modification of incoming requests before further processing. Changes made during this phase are visible to subsequent phases.

Available Actions

  • http.request.uri.set: Modifies the URI for the current request.

Available Fields

Available Functions

Example

A common use case is to convert an old URL format like example.com/contentID=12345 to a more concise format such as example.com/content/12345.

The following configuration converts the request URI path to lowercase, which normalises URLs for better caching and consistency.

http.request.uri.set:
  path: ${lower(http.request.uri.path)}
  query: ${http.request.uri.query}