Skip to main content

Proxy Rewrite Plugin Reference

FieldTypeDefaultOptionalLimitationsDescription
Rewrite HTTP Methodstring-YesOptional Values: GET, POST, HEAD, PUT, Delete , CONNECT, OPTIONS, TRACE, PATCHSpecify how to rewrite HTTP method.
Request URI Modearray of rewrite headers operations-YesLength >= 1Header rewrite rules.

Request URI Mode

Regex Replace

FieldTypeDefaultOptionalLimitationsDescription
Regex Patternstring-NoValid PCRE regular expressionSpecify the regex pattern that the original request URI should match.
New URIstring-NoThe New Request URI pattern (can contain capture group from the Regex Pattern.

Replace

FieldTypeDefaultOptionalLimitationsDescription
New URIstring-NoThe New Request URI.

Rewrite Headers

FieldTypeDefaultOptionalLimitationsDescription
Operationstring-NoOptional Values: Add / Replace, Delete .The header operation type.
Headerstring-NoThe header name.
Valuestring-Required if Operation is Add /Replace.The header value.
API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation