Rewrites
Rewrites allow you to transparently route requests to different destinations without changing the visible URL in the browser. Unlike redirects, rewrites happen server-side.
Example: Rewrite Rules
{
"Type": "rewrite",
"From Path": "/api/*",
"Destination": "https://api.example.com/*"
}
When to Use Rewrites
- Proxying API requests to a backend service
- Mapping old URLs to new paths silently
- Combining multiple services under one domain
- A/B testing without changing URLs