Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sites/platform/src/define-routes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ https://example.com.feature-t6dnbai-abcdef1234567.us-2.{{< vendor/urlraw "hostna

### `{all}`

You can also set up multiple domains for a single project.
You can also set up multiple domains for a single environment.
To define rules for all of them, use `{all}` in your template.

Say you have both `example.com` and `example.net` as domains in a project.
Say you have both `example.com` and `example.net` as domains on an environment.
You can then define the following routes:

```yaml {configFile="routes"}
Expand All @@ -239,7 +239,7 @@ your app runs at both `https://example.com` and `https://example.net`.
The second route means that `https://www.example.com` redirects to `https://example.com`
_and_ `https://www.example.net` redirects to `https://example.net`.

If your project has no domains or only one, `{all}` behaves exactly like `{default}`.
If your environment has no domains or only one, `{all}` behaves exactly like `{default}`.

If you have two routes sharing the same HTTP scheme, domain, and path
and the first route is using `{default}` and the second is using `{all}`,
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/define-routes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ Note that the `example.com` prefix isn't part of the generated URL.

### `{all}`

You can also set up multiple domains for a single project.
You can also set up multiple domains for a single environment.
To define rules for all of them, use `{all}` in your template.

Say you have both `example.com` and `example.net` as domains in a project.
Say you have both `example.com` and `example.net` as domains on an environment.
You can then define the following routes:

```yaml {configFile="routes"}
Expand All @@ -209,7 +209,7 @@ your app runs at both `https://example.com` and `https://example.net`.
The second route means that `https://www.example.com` redirects to `https://example.com`
_and_ `https://www.example.net` redirects to `https://example.net`.

If your project has no domains or only one, `{all}` behaves exactly like `{default}`.
If your environment has no domains or only one, `{all}` behaves exactly like `{default}`.

If you have two routes sharing the same HTTP scheme, domain, and path
and the first route is using `{default}` and the second is using `{all}`,
Expand Down
Loading