

http://<backend>/anything/api/<sub_path>.
After URL rewriting is used, the call URL is rewritten as http://<kong>/new/path/<sub_path>.
/anything/api.


/new/path, and enable Strip Path (enabled by default).

http://<kong>/new/path/user, the request path received by the backend service is /anything/api/user.http://<backend>/anything/user_list.
After URL rewriting is used, the call URL is rewritten as http://<kong>/users./users.

replace.uri to /anything/user_list. The path is the actual request path received by the backend service.

/anything/path. (The original service path configuration is overwritten.)http://<backend>/anything/<user_id>/get.
After URL rewriting is used, the call URL is rewritten as http://<kong>/user/<user_id>./user/(?<user_id>\\w+).


replace.uri to /anything/$(uri_captures['user_id'])/get. The path is the actual request path received by the backend service.

http://<kong>/user/user_a, the path of the request received by the backend service is /anything/user_a/get.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback