Redirect domain to Google Site
Last updated
Last updated
Time Required
15 Minutes
Difficulty
Low
In this scenario, we're redirecting a domain managed by Cloudflare to a Google Site. Google Site's are great as they are free!
Domains managed by other providers can be redirected to Google sites but I don't know anything about that. If your domain is managed elsewhere, you may be able to follow some of this guide but I will not be able to assist you with troubleshooting
Connect your domain to your Google Site
Click on the settings cog in the top right
In the menu, select Custom Domains
Click on Add
Leave the subdomain as www and input your domain
Click on Next and you will be provided with the below information
Now that the Google Site is set up to accept your domain, we need to configure the forward in Cloudflare
Navigate to your Cloudflare dashboard and select the relevant domain
On the left hand menu, select DNS
Click on "Add Record", input the below and hit Save
I highly recommend following this, as by default going to mydomain.com
will not work, but www.mydomain.com
will. In this step, we will redirect mydomain.com
to www.mydomain.com
Navigate to your Cloudflare dashboard and select the relevant domain
On the left hand menu, select DNS
Click on "Add Record" , input the below and hit Save
On the left, click on Rules > Redirect rules
Create a new rule and input the below (don't forget to change the domain address for your domain, highlighted in yellow)
concat("https://www.mydomain.com", http.request.uri.path)
Click on Deploy
You will now need to wait some time for the rules to apply, sometimes this is very slow.