Keep the incoming request pathv3.9+

Redirect incoming requests to a target location, using the request path and query string from the incoming request in the redirect URL.

Incoming request

config.location

config.keep_incoming_path

New URL

https://example.com/demo?foo=bar https://new.example.com true https://new.example.com/demo?foo=bar
https://example.com/demo?foo=bar https://new.example.com/some-path true https://new.example.com/demo?foo=bar

Environment variables

  • YOUR_REDIRECT_URL: The target URL for incoming requests.

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!