Get Redirects
endpoint
Retrieve all redirect rules for an environment.
Response
array
Array of redirect objects
Set Redirects
endpoint
Update redirect rules for an environment.
Request Body
array
required
Array of redirect objects to set
Response
array
The updated array of redirect objects
Redirect Types
Path Rewrite (Status 200)
Serve content from a different path without changing the URL:Permanent Redirect (Status 301)
Redirect permanently to a new URL:Temporary Redirect (Status 302)
Redirect temporarily to a different URL:Advanced Patterns
Wildcard Redirects
Use* to match any path segment:
/blog/my-post to /articles/my-post.
Regex Patterns
Use regex capture groups with$1, $2, etc.:
Host-Specific Redirects
Apply redirects only to specific domains:Domain Redirects
Redirect from one domain to another:Excluding Assets
By default, wildcard redirects exclude asset files (files with extensions). To include assets:Common Use Cases
Single Page Application
WWW to Non-WWW
Multiple Redirects with Priorities
Redirects are processed in order. More specific rules should be placed before general wildcard rules.