如果您是Google 协作平台(Google Sites)的用户,那么您就会知道Google 协作平台是创建免费网站的最快、最简单的方法之一(Google Sites is one of the fastest and easiest ways to create a free website)。
但是,由于它是免费的,因此您的网站将托管在以“https://sites.google.com”开头的Google 协作平台网站上。(Google Sites website)但是,如果您希望人们轻松记住如何访问您的网站,最好将您的域指向您的Google 协作平台(Google Sites)网站。
自定义Google协作平台域的工作原理(Custom Google Sites Domains Work)
您可以通过两种方式拥有指向您的Google 协作平台(Google Sites)网站的自定义域名。
- 从 Google Domains 中选择一个域:如果您通过(Select a domain from Google Domains)Google Domains购买了自己的域,您将在下面的过程中看到一个选项,用于通过向导选择该域。
- 使用来自第三方的域名(Use a domain from a third party):如果您通过GoDaddy等其他注册商购买了您的域名,您需要在向导中选择“第三方”选项。
在本指南中,您将了解如何逐步完成将您的域(无论您在何处注册)链接到您的Google 协作平台(Google Sites)网站的过程。
注意(Note):您不能将不属于您的任何域链接到您的Google 协作平台(Google Sites)网站。如果您想将朋友的域链接到您的网站,您需要获得他们的许可并协助您完成验证所有权的步骤。
如何将您的域(Domain)指向Google 站点(Google Sites)
如果您已注册域并准备将其链接到您的Google 协作平台(Google Sites)网站,请按照以下流程操作。
1. 打开您的Google 协作平台(Google Sites)网站。选择右上角菜单中的设置齿轮。
2. 在设置窗口中,从左侧菜单中选择自定义域。(Custom domains)在右窗格中,选择开始设置(Start setup)以启动自定义域(custom domains)设置向导。
3. 向导的第一步是选择您是要使用Google Domains还是您自己的第三方域名注册商。选择适合您情况的选项。在本文中,我们将展示如何与第三方域名注册商链接。要使用此选项,请选择使用来自第三方的域,(Use a domain from a third party)然后选择下一步(Next)。
4. 在向导提供的字段中输入您的域。您将看到该域尚未验证的说明。选择验证您的所有权(verify your ownership)以开始验证您是域的所有者。
5. 将打开一个新网页,其中包含Google提供的有关如何编辑域的DNS(域名系统(Domain Name System))记录的说明,以便Google确认您是所有者。仔细阅读这些说明。
6. 以GoDaddy为例,您需要转到您注册的域并选择DNS链接以编辑域的DNS记录。
7. 在您的域的DNS条目页面上,选择添加(ADD)以创建一个新条目。
8.按照Google说明中的说明输入(Google)DNS记录。如果表单要求提供主机,请键入@。在TXT 值(TXT Value)字段中输入说明中定义的文本。您可以将TTL字段保留为默认值。确保(Make)选择的记录类型是TXT。完成后选择保存(Save)。
9. 返回验证方法(Verification Method)页面并选择红色的验证(Verify)按钮。如果Google可以检测到您创建的新DNS记录,您应该会看到一条确认消息。(DNS)
注意(Note):如果Google仍然无法验证您是否拥有该域,您可能需要给它一些时间。DNS记录有时需要一些时间才能通过 Internet 复制,这可能需要几个小时才能进行验证。耐心点!
10. 返回您的Google 协作平台(Google Sites)页面并取消之前的域设置。然后打开设置(Settings),从左侧菜单中选择自定义域,然后再次选择(Custom domains)开始设置(Start setup)。这一次,当您在字段中键入您的域时,您应该会看到一个复选标记。选择下一步(Next)继续。
11. 向导的下一步将显示CNAME记录说明。
12. 为此,只需与您的域名注册商重复上述过程,但这次将记录设为 CNAME(CNAME)类型。将主机设置为www,然后在Points to字段中,输入Google(URL Google)在说明中提供的 URL。将TTL(TTL)保留为默认值,完成后选择保存(Save)。
注意(Note):如果 www CNAME记录已存在,请对其进行编辑并将 Points to 字段替换为Google(URL Google)说明中提供的 URL。
13. 返回到Google 站点(Google Sites)上的向导并选择完成(Done)。您应该会在Connected domain 列表中看到该域(Connected domains)。
现在您的自定义域已链接到您的 Google 协作平台网站(your Google Sites website)。您应该能够打开您的浏览器,输入您的自定义域名,它会打开您的网站。
此链接可能无法立即工作,因为CNAME记录需要一段时间才能复制。您可能需要等待几个小时才能使自定义域链接正常工作。
自定义(Custom)域的问题和解决(Resolutions)方案
您的自定义域可能无法正确链接到您的网站还有许多其他原因。尝试以下修复以使其正常工作。
- 让您创建的CNAME条目在一两天内生效。如果这不起作用,请继续进行下一个修复。
- 仔细检查您在向导中输入的自定义域名的URL ,并确保它实际上与您的注册域匹配,没有任何拼写错误。(URL)确保(Make)在URL中包含“www” 。
- 确保(Make)您尚未使用任何其他 Google 服务(other Google services)(例如Blogger或旧版Google 协作平台(Google Sites)(经典版))注册您的域。
- 如果您尝试映射超过 20 个URL(URLs),它将无法正常工作。您只能将 20 个自定义域映射到您的Google 站点(Google Site)页面。
现在您已经将您的域指向了您的Google 协作平台(Google Sites)网站,您的访问者可以使用典型的自定义URL访问您的网站,就像 Internet 上的任何其他常规网站一样。
How to Point Your Domain to Google Sites
If you’re a user of Google Sites, then you know that Google Sites is one of the fastest and easiest ways to create a free website.
However, since it’s free, your site will be hosted on the Google Sites website which starts with “https://sites.google.com”. But if you want people to easily remember how to get to your site, it’s better to point your domain to your Google Sites website.
How Custom Google Sites Domains Work
There are two ways you can have your own customized domain name that points to your Google Sites website.
- Select a domain from Google Domains: If you purchased your own domain through Google Domains, you’ll see an option in the process below to choose that domain through the wizard.
- Use a domain from a third party: If you purchased your domain through another registrar like GoDaddy, you’ll need to choose the “third party” option in the wizard.
In this guide, you’ll learn how to step through the process to link your domain, regardless of where you registered it, to your Google Sites website.
Note: You can’t link any domain that you don’t own to your Google Sites website. If you want to link a friend’s domain to your site, you’ll need to get permission from them and assist you with the steps to verify ownership.
How to Point Your Domain to Google Sites
If you’ve registered a domain and you’re ready to link it to your Google Sites website, follow the process below.
1. Open your Google Sites website. Select the Settings gear in the upper right menu.
2. In the Settings window, select Custom domains from the left menu. In the right pane, select Start setup to launch the custom domains setup wizard.
3. The first step of the wizard is to choose whether you want to use Google Domains, or your own third party domain registrar. Choose the option that’s right for your situation. In this article we’ll show how to link with a third party domain registrar. To use this option, select Use a domain from a third party and select Next.
4. Type your domain into the fields provided in the wizard. You will see a note that the domain hasn’t been verified yet. Select verify your ownership to get started with verifying that you’re the owner of the domain.
5. A new web page will open with instructions from Google on how to edit your domain’s DNS (Domain Name System) records so that Google can confirm you’re the owner. Read these instructions carefully.
6. In the case of GoDaddy, for example, you’ll need to go to the domain you’ve registered and select the DNS link to edit the domain’s DNS records.
7. On the page of DNS entries for your domain, select ADD to create a new one.
8. Enter the DNS record as described in the Google instructions. If the form asks for a host, type @. Enter the text defined in the instructions into the TXT Value field. You can leave the TTL field at default. Make sure the record type selected is TXT. Select Save when you’re done.
9. Go back to the Verification Method page and select the red Verify button. If Google can detect the new DNS record you’ve created, you should see a confirmation message.
Note: If Google still can’t verify that you own the domain, you may need to give it some time. DNS records sometimes take time to replicate over the internet, and this can take up to a few hours before the verification will work. Be patient!
10. Return to your Google Sites page and cancel the previous domain setup. Then open Settings, select Custom domains from the left menu, and select Start setup again. This time, when you type your domain into the fields, you should see a checkmark appear. Select Next to continue.
11. The next step in the wizard will show you CNAME record instructions.
12. To do this, just repeat the process above with your domain registrar, but this time make the record the CNAME type. Set the host as www, and in the Points to field, type the URL Google provided in the instructions. Leave TTL at default and select Save when you’re done.
Note: If the www CNAME record already exists, edit it and replace the Points to field with the URL Google provided in the instructions.
13. Return to the wizard on Google Sites and select Done. You should see the domain show up in the list of Connected domains.
Now your custom domain is linked to your Google Sites website. You should be able to open your browser, type your custom domain name and it will bring up your site.
This link may not work immediately since the CNAME record will take a while to replicate. You may need to give this up to a few hours for the custom domain link to work.
Issues and Resolutions for Your Custom Domain
There are a number of other reasons your custom domain may not link properly to your site. Try the following fixes to get it working.
- Give the CNAME entry you’ve made a day or two to take effect. If this doesn’t work, move on to the next fix.
- Double check the URL you entered in the wizard for your custom domain name and ensure that it actually matches your registered domain, without any typos. Make sure to include “www” in the URL.
- Make sure you haven’t already registered your domain with any other Google services like Blogger or the previous version of Google Sites (classic).
- If you’re trying to map more than 20 URLs, it won’t work. You are limited to mapping 20 custom domains to your Google Site page.
Now that you’ve pointed your domain to your Google Sites website, your visitors can visit your site using a typical customized URL just like any other regular website on the internet.