From b5f097af33448e3dd81aa0e8851e99cf5ce1d1bc Mon Sep 17 00:00:00 2001 From: J0J0 T <2733783+JOJ0@users.noreply.github.com> Date: Wed, 31 Mar 2021 08:49:53 +0200 Subject: [PATCH 1/2] Update www-and-apex-domain-recommendation.md --- data/reusables/pages/www-and-apex-domain-recommendation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/reusables/pages/www-and-apex-domain-recommendation.md b/data/reusables/pages/www-and-apex-domain-recommendation.md index 83de39755f4e..edcf74b03539 100644 --- a/data/reusables/pages/www-and-apex-domain-recommendation.md +++ b/data/reusables/pages/www-and-apex-domain-recommendation.md @@ -1 +1 @@ -If you are using an apex domain as your custom domain, we recommend also setting up a `www` subdomain. If you configure the correct records for each domain type through your DNS provider, {% data variables.product.prodname_pages %} will automatically create redirects between the domains. For example, if you configure `www.example.com` as your custom domain for your site, and you have `ALIAS` and `CNAME` records set up for the apex and `www` domains, then `example.com` will redirect to `www.example.com`. For more information, see "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site/#configuring-a-subdomain)." +If you are using an apex domain as your custom domain, we recommend also setting up a `www` subdomain. If you configure the correct records for each domain type through your DNS provider, {% data variables.product.prodname_pages %} will automatically create redirects between the domains. For example, if you configure `www.example.com` as your custom domain for your site, and you have `ALIAS` (alternatively `ANAME` or `A` records) and `CNAME` records set up for the apex and `www` domains, then `example.com` will redirect to `www.example.com`. Note that this is only the case for the `www` subdomains. Automatic redirects are not created for subdomains like e.g `blog`. For more information, see "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site/#configuring-a-subdomain)." From 53b1375a76a64a0df85791103b8d55af18a9527a Mon Sep 17 00:00:00 2001 From: Lucas Costi Date: Thu, 1 Apr 2021 11:44:45 +1000 Subject: [PATCH 2/2] Rewording and link fixes --- .../about-custom-domains-and-github-pages.md | 2 +- .../managing-a-custom-domain-for-your-github-pages-site.md | 2 +- data/reusables/pages/www-and-apex-domain-recommendation.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/github/working-with-github-pages/about-custom-domains-and-github-pages.md b/content/github/working-with-github-pages/about-custom-domains-and-github-pages.md index e4df3a2b7f40..aaf7ed7f346d 100644 --- a/content/github/working-with-github-pages/about-custom-domains-and-github-pages.md +++ b/content/github/working-with-github-pages/about-custom-domains-and-github-pages.md @@ -49,7 +49,7 @@ An apex domain is a custom domain that does not contain a subdomain, such as `ex An apex domain is configured with an `A`, `ALIAS`, or `ANAME` record through your DNS provider. For more information, see "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/articles/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain)." -{% data reusables.pages.www-and-apex-domain-recommendation %} +{% data reusables.pages.www-and-apex-domain-recommendation %} For more information, see "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site/#configuring-a-subdomain)." ### Updating custom domains when your {% data variables.product.prodname_pages %} site is disabled diff --git a/content/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site.md b/content/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site.md index da288d5eab6d..65e3d17c04b4 100644 --- a/content/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site.md +++ b/content/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site.md @@ -62,7 +62,7 @@ To set up a `www` or custom subdomain, such as `www.example.com` or `blog.exampl To set up an apex domain, such as `example.com`, you must configure a _CNAME_ file in your {% data variables.product.prodname_pages %} repository and an `ALIAS`, `ANAME`, or `A` record with your DNS provider. -{% data reusables.pages.www-and-apex-domain-recommendation %} +{% data reusables.pages.www-and-apex-domain-recommendation %} For more information, see "[Configuring a subdomain](#configuring-a-subdomain)." {% data reusables.pages.navigate-site-repo %} {% data reusables.repositories.sidebar-settings %} diff --git a/data/reusables/pages/www-and-apex-domain-recommendation.md b/data/reusables/pages/www-and-apex-domain-recommendation.md index edcf74b03539..dbb2dd1416d4 100644 --- a/data/reusables/pages/www-and-apex-domain-recommendation.md +++ b/data/reusables/pages/www-and-apex-domain-recommendation.md @@ -1 +1 @@ -If you are using an apex domain as your custom domain, we recommend also setting up a `www` subdomain. If you configure the correct records for each domain type through your DNS provider, {% data variables.product.prodname_pages %} will automatically create redirects between the domains. For example, if you configure `www.example.com` as your custom domain for your site, and you have `ALIAS` (alternatively `ANAME` or `A` records) and `CNAME` records set up for the apex and `www` domains, then `example.com` will redirect to `www.example.com`. Note that this is only the case for the `www` subdomains. Automatic redirects are not created for subdomains like e.g `blog`. For more information, see "[Managing a custom domain for your {% data variables.product.prodname_pages %} site](/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site/#configuring-a-subdomain)." +If you are using an apex domain as your custom domain, we recommend also setting up a `www` subdomain. If you configure the correct records for each domain type through your DNS provider, {% data variables.product.prodname_pages %} will automatically create redirects between the domains. For example, if you configure `www.example.com` as the custom domain for your site, and you have {% data variables.product.prodname_pages %} DNS records set up for the apex and `www` domains, then `example.com` will redirect to `www.example.com`. Note that automatic redirects only apply to the `www` subdomain. Automatic redirects do not apply to any other subdomains, such as `blog`. \ No newline at end of file