A single route rule for redirects or rewrites.
Appears in
Type
Object
Properties
When true, the redirect will be applied even if a file exists at the from path.
Defaults to: false
Appears in: routes[*].
The URL pattern to match incoming requests against. CloudCannon routing supports glob-style patterns.
Appears in: routes[*].
The HTTP status code for this redirect rule. When using 200, 404, and 410 status codes, to must refer to a path on the same Site.
Defaults to: 301
Allowed values: 200 301 302 303 307 308 404 410
Appears in: routes[*].
When true, captured segments from glob patterns in from will be substituted into the to path.
Defaults to: true
Appears in: routes[*].