diff --git a/src/content/docs/pages/how-to/redirect-to-custom-domain.mdx b/src/content/docs/pages/how-to/redirect-to-custom-domain.mdx index 893e5e84e2443b4..03beb1efec4cefe 100644 --- a/src/content/docs/pages/how-to/redirect-to-custom-domain.mdx +++ b/src/content/docs/pages/how-to/redirect-to-custom-domain.mdx @@ -8,11 +8,11 @@ import { Example } from "~/components" 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/). -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. +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. ## Setup -To redirect a `*.pages.dev` subdomain to your custom domain: +To redirect a `.pages.dev` subdomain to your custom domain: 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/domains), and select your account. 2. Select **Workers & Pages** and select your Pages application. @@ -24,13 +24,13 @@ To redirect a `*.pages.dev` subdomain to your custom domain: | Source URL | Target URL | Status | Parameters | | ------------- | --------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ | -| `*.pages.dev` | `https://example.com` | `301` | | +| `.pages.dev` | `https://example.com` | `301` |
  • Preserve query string
  • Subpath matching
  • Preserve path suffix
  • Include subdomains
| 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. -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. +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. ## Related resources