Redirect file
One redirect file.
Schema definition: RedirectFile.
Example
A minimal projects/<project>/redirects/<name>.yaml:
# yaml-language-server: $schema=https://a-line.cloud/schemas/iac/v1.json
version: 1
domains:
- domain: old.example.com
forward:
to: https://example.net
status: 301
keep_path: true
keep_query: trueFields
allow_delete
Type: boolean, optional.
Let removing this file delete the redirect set and free its domains.
domains
Type: list of RedirectDomain, required.
The domains the set answers, each verified in the organization like any custom domain.
enabled
Type: boolean, optional.
A disabled set keeps its domains but answers nothing (default true).
forward
Type: Forward, optional.
Send every request on the domains to one URL. Set this or rules.
rules
Type: list of Rule, optional.
Ordered rules: the first enabled one that matches answers. Set this
or forward.
version
Type: SchemaVersion, required.
The IaC schema version this file is written for.