How to connect your domain to Google Sites
Want to connect your Porkbun domain to your Google Sites page? No problem!
According to this article from Google, you will need to verify ownership of your domain and connect to it with a CNAME record. Google Sites have to be placed on a subdomain such as www since Google Sites won't allow you to map your site to your root domain. You'll need to decide ahead of time if you want to use www as your subdomain, or something else (for instance blog.mysite.tld).
Let's get started!
- 1
-
Log in to your Google Site and click the "Publish" button in the upper-right corner.
If you have already published the site, click the arrow button next to "Publish" and click "Publish Settings..." in the drop-down menu
Click MANAGE in the Custom URL settings section to add a Custom URL. - 2
-
On the Google Sites Settings page, select the "Start Setup" button to begin connecting your domain:
- 3
-
On the Set up custom domain page, select Use a domain from a third party and click the purple "Next" button:
- 4
-
Enter your domain name using the sub-domain you would like to use (generally www). As we mentioned in the intro, Google Sites does not support the use of the root domain.
You will be prompted to verify your ownership of the domain. Click the "verify your ownership" link to proceed.
This will open up the verification page in a new tab.
-
- 5
-
You will be prompted to choose a domain provider. Choose "Other" from the dropdown menu to continue to a manual setup page:
-
- 6
-
Once you select "Other" from the dropdown menu, you will be redirected to the Webmaster Central page and shown instructions to create a TXT record. Select and copy the entire record value:
- 7
-
Login to your Porkbun account. You should end up on your Domain Management page.
If you are already logged in, click on ACCOUNT in the top right corner and select "Domain Management."
Then click on Details to the right of your domain and click on the "Edit" link under DNS Records.
-
- 8
-
If you chose the TXT record method, select "TXT" from the Type dropdown menu. Leave the Host blank and paste the record from earlier into the Answer field, and select the green "Add" button.
-
- 9
-
Add a second record, selecting "CNAME" as the type. Under Host, list the subdomain you chose earlier set the answer to "ghs.googlehosted.com." (be sure to include the period), then click the green "Add" button.
-
- 10
-
Return to the Webmaster Central tab and select the red "Verify" button. If the verification succeeds, you will see the message "Great job, [your domain name]
is now verified!"
If your domain does not verify, you can alternatively select the Add a CNAME record option and copy the hostname and value for the CNAME record:
-
-
If you chose the CNAME record method, you just want to add the first two parts of the hostname and the full value into the Answer field.
- 11
-
Go back to the Google Sites page to the Set up custom domain pop-up and retype in your domain. Look for a checkmark next to the domain. If you see it, select the purple "Next" button:
- 12
-
On the next page, select the purple "Done" button, as you have already added the CNAME record request on step 9 and you should see your domain assigned in Custom Domains:
- 13
- Finally, if you haven't already, click the "Publish" button to publish your site.
-
That's it! If you did everything correctly, your subdomain should begin resolving to your Google Sites page.
Please Note:
It can take up to 48 hours for the Google Sites page to fully resolve to your Porkbun domain.
Enable Forwarding from the Root domain to your Subdomain
If this Google Site is going to be the primary website for your domain, you'll need to set up URL forwarding so that people who don't type the "www" can still get to your site.
- 1
-
To enable forwarding from the root domain, sign in to Porkbun and go to the Domain Management page. Click the "Details" button for your domain and then click the "Edit" link under URL Forwarding.
-
- 2
- Enter the URL of your chosen subdomain, including https. For example
- https://www.goosehollow.ink
- Then, select the "Toggle advanced settings" link and check the box at the bottom to "Include the requested URI path in the redirection". Select the pink "Submit" button to finish setting up the URL redirect.
-
-