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/11/05 04:28:05 UTC

[GitHub] [apisix] bzp2010 commented on issue #5428: request help: How to write the rewrite rule

bzp2010 commented on issue #5428:
URL: https://github.com/apache/apisix/issues/5428#issuecomment-961619587


   @Caibreeze0908 You should use the `proxy-rewrite` plugin.
   
   just like this:
   ```json
   {
     "plugins": {
       "proxy-rewrite": {
         "regex_uri": [
           "^/(.*)",
           "/test/$1"
         ]
       }
     }
   }
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org