Rewrite a path

Configure the plugin to rewrite the request path before proxying it to the upstream.

This example uses the first capture group from your route in the upstream URL.

  • Route: paths: ['/users/(\d+)']
  • Incoming request: GET /users/123
  • Upstream request: GET /anything/123

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!