You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/22 03:59:00 UTC

[GitHub] [apisix] tzssangglass commented on a change in pull request #4459: docs: add 'how to remove route prefix' in FAQ

tzssangglass commented on a change in pull request #4459:
URL: https://github.com/apache/apisix/pull/4459#discussion_r655857949



##########
File path: docs/zh/latest/FAQ.md
##########
@@ -501,3 +501,37 @@ $ acme.sh --renew --domain demo.domain
 ```
 
 详细步骤,可以参考博客 https://juejin.cn/post/6965778290619449351
+
+## 如何在路径匹配时去除路由前缀
+
+去除路由前缀,比如说从 `/foo/get` 转发至 `/get`,可以通过插件 `proxy-rewrite` 实现。

Review comment:
       去除路由前缀,比如说从 `/foo/get` 转发至 `/get`
   
   can be changed to
   
   在转发到上游之前,剪除请求路径中的前缀,比如说从 `/foo/get` 改成 `/get`
   




-- 
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:
users@infra.apache.org