motongxue commented on issue #10997:
URL: https://github.com/apache/apisix/issues/10997#issuecomment-1980796713

   And when I add it using PUT method, the URI can be rewritten normally.
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes"; -X PUT -d '
   {
     "id": "regex_uri",
     "uri": "/api/*",
     "plugins": {
       "proxy-rewrite": {
           "regex_uri": ["^/api/(.*)", "/$1"]
       }
     },
     "upstream": {
       "type": "issue-test",
       "nodes": {
         "host.docker.internal:3000": 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to