Skip to content

Commit da35ec5

Browse files
authored
Update redirect-to-custom-domain.mdx (#19283)
Wildcards are not supported in bulk redirects, this redirect will not work.
1 parent c398429 commit da35ec5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/docs/pages/how-to/redirect-to-custom-domain.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { Example } from "~/components"
88

99
Learn how to use [Bulk Redirects](/rules/url-forwarding/bulk-redirects/) to redirect your `*.pages.dev` subdomain to your [custom domain](/pages/configuration/custom-domains/).
1010

11-
You may want to do this to ensure that your site's content is served only on the custom domain, and not the `*.pages.dev` site automatically generated on your first Pages deployment.
11+
You may want to do this to ensure that your site's content is served only on the custom domain, and not the `<project>.pages.dev` site automatically generated on your first Pages deployment.
1212

1313
## Setup
1414

15-
To redirect a `*.pages.dev` subdomain to your custom domain:
15+
To redirect a `<project>.pages.dev` subdomain to your custom domain:
1616

1717
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/domains), and select your account.
1818
2. Select **Workers & Pages** and select your Pages application.
@@ -24,13 +24,13 @@ To redirect a `*.pages.dev` subdomain to your custom domain:
2424

2525
| Source URL | Target URL | Status | Parameters |
2626
| ------------- | --------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
27-
| `*.pages.dev` | `https://example.com` | `301` | <ul><li>Preserve query string</li><li>Subpath matching</li><li>Preserve path suffix</li><li>Include subdomains</li></ul> |
27+
| `<project>.pages.dev` | `https://example.com` | `301` | <ul><li>Preserve query string</li><li>Subpath matching</li><li>Preserve path suffix</li><li>Include subdomains</li></ul> |
2828

2929
</Example>
3030

3131
6. [Create a bulk redirect rule](/rules/url-forwarding/bulk-redirects/create-dashboard/#2-create-a-bulk-redirect-rule) using the list you just created.
3232

33-
To test that your redirect worked, go to your `*.pages.dev` domain. If the URL is now set to your custom domain, then the rule has propagated.
33+
To test that your redirect worked, go to your `<project>.pages.dev` domain. If the URL is now set to your custom domain, then the rule has propagated.
3434

3535
## Related resources
3636

0 commit comments

Comments
 (0)