a6-plugin-proxy-rewrite
Installation
SKILL.md
a6-plugin-proxy-rewrite
Overview
The proxy-rewrite plugin rewrites request attributes before APISIX forwards
the request to the upstream. You can change the URI path, host header, HTTP
method, scheme, and add/set/remove request headers — all without modifying
your backend service.
When to Use
- Rewrite the URI path before forwarding (e.g., strip a prefix like
/api/v1) - Rewrite the Host header for backend routing
- Change the HTTP method (e.g., convert POST to PUT)
- Add, set, or remove request headers before proxying
- Use regex-based URI rewriting for complex path transformations
- Switch the scheme from HTTP to HTTPS (or vice versa) when proxying