> Index of every page on this site: [llms.txt](https://docs.a-line.cloud/llms.txt)

# Redirect file

> One redirect file.

Schema definition: `RedirectFile`.

## Example

A minimal `projects/<project>/redirects/<name>.yaml`:

```yaml title="projects/web/redirects/old.yaml" iac
# 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: true
```

## Fields

### `allow_delete`

Type: `boolean`, optional.

Let removing this file delete the redirect set and free its domains.

### `domains`

Type: list of [`RedirectDomain`](/iac/reference/types#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`](/iac/reference/types#forward), optional.

Send every request on the domains to one URL. Set this or `rules`.

### `rules`

Type: list of [`Rule`](/iac/reference/types#rule), optional.

Ordered rules: the first enabled one that matches answers. Set this
or `forward`.

### `version`

Type: [`SchemaVersion`](/iac/reference/types#schemaversion), required.

The IaC schema version this file is written for.
