Skip to Content
Advanced FeaturesURL Redirects

URL Redirects

Redirect requests from one URL to another without changing your application code. The client never knows the request was rerouted — APXY transparently forwards it to the new destination.

Web UI

Open Redirects from the Modify group. The page provides:

  • A form to create redirect rules with From URL, To URL, and Match Type (exact / wildcard / regex) fields
  • A list of all active redirect rules with enable/disable toggles
  • Delete buttons for each rule

All changes take effect immediately — no proxy restart required.

CLI

URL rewrite rules use apxy rewrite … (set, list, remove, edit). Full flag reference is in CLI Reference → Rewrite.

Quick example:

apxy rewrite set \ --from "api.production.com" \ --to "api.staging.com" \ --match wildcard

Use Cases

Redirect production to staging

Point a client at production hosts while APXY rewrites matching calls to staging — remove the rule when you are done.

API version migration

Rewrite versioned path prefixes so older clients can talk to newer backends without code changes.

Local development

Rewrite external API hostnames to localhost services for fast iteration.

Last updated on