Skip to main content

Prefix Rewrite

Summary

If set, Prefix Rewrite indicates that during forwarding, the matched prefix (or path) should be swapped with this value.

How to configure

YAML/JSON settingTypeUsage
prefix_rewritestringoptional

Examples

from: https://from.example.com
to: https://to.example.com
prefix: /admin
prefix_rewrite: /

A request to https://from.example.com/admin would be forwarded to https://to.example.com/.