Docs / Modifying Traffic
Rewrite Rules
Automatically modify matching requests and responses.
Rewrite rules apply edits to any traffic matching a URL pattern — no pausing needed. Open Tools → Rewrite Rules.
What a rule can do
- Header modifications — add, remove, or replace request/response headers.
- Body replacement — swap the request or response body.
- Status code override on responses.
- Scope to request or response, and filter by HTTP method.
TipFor swapping a whole response with a local file, use Map Local; to retarget a host, use Map Remote.