moonming commented on issue #949: request help: How to replace uri? URL: https://github.com/apache/incubator-apisix/issues/949#issuecomment-565781283 you can add `sub_uri` option in the schema of `proxy_rewite` plugin: https://github.com/apache/incubator-apisix/blob/master/lua/apisix/plugins/proxy-rewrite.lua#L25 Then you can add replace code in this plugin, and the API like this: ``` "proxy-rewrite": { "sub_uri": ["\/abc\/(.*)", "/$1"], "scheme": "http", "host": "iresty.com", } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services