Host website on Google drive with custom domain
Here are the main reasons why you should do it.
- It’s free
It saves hundreds of dollars per year in web hosting.
- It’s secure
- No bandwidth limits
- No Down Time
Your website will never be down. Google servers are very reliable.
- No FTP software needed
If you want to change something just replace the file in your Google Drive folder. The disadvantages are if your website was made with WordPress, Joomla or PHP, this will not work for you. This is only for static websites. Google Drive URL structure cannot be changed. But no worries there is a way to use, your custom domain name. I will guide you step-by-step to host your website on Google Drive. Then I will show you how to assign it to your custom domain name. let’s start.
I assume you already have your website files.
The first thing you need is an index.html file. This file will be served when someone tries to access your website.
Next, we drop the website folder in Google Drive preferably in the root.
Now make this folder public.
Right-click on the folder and select get a shareable link. Before we continue further make sure the folder name starts with www.
Now open a new tab in your browser and type DRV DW.
- Select Google Drive.
- Sign in with the email associated with the Google Drive account where you uploaded the website files.
- Click allow.
Now your website is hosted on Google Drive.
This is the new URL to your website.
Host website on Google drive with a custom domain
If you want to use a different domain with your website, follow the steps-
Copy the URL and login to your domain provider. I recommend purchasing your domain names from namecheap.com. They have the best prices and amazing support.
Select the domain you want to manage. Remove any name servers from your previous web hosting provider.
Next, you have to add a new cname record.
- In the host field type “www”
- In the value, field paste the website URL you generated previously in Step 5.
- Remove the HTTPS prefix and remove all the text that comes after the DRV TW.
- In the TTL field select 30 minutes to allow your visitors to access your domain without www.
- You must add a new URL redirect record.
- In the value field type HTTP followed by your domain name.
The records should take up to 30 minutes to get accepted globally. However, since you just changed name servers, it can take up to 48 hours for your site to be up.
Again, you can track the progress of propagation with the help of these tools- “https://www.whatsmydns.net/#NS/” to check your website. Before the propagation is complete try this proxy tool which bypasses DNS and local cache- “http://kproxy.com”.
When your DNS is successfully propagated, check the speed of your website. If your website is slower than it used to be, you can take one more step to make it load faster.
- Go to “https://www.cloudflare.com” and create an account.
- Add a new website.
- Type your domain name.
- Choose a free plan. It’s free forever.
- Copy the value of cname record.
- Create a new text record and in the name field type WWW. In the value field paste the text you copied previously and type DRVTW= followed by the text you copied.
- Save it and click add record.
- Copy the DNS values and go back to your domain provider and paste it in the name server fields.
Congratulations!! Your website is now online with no hosting costs.
Comment below if you any questions.
- USB Device not recognized by Windows 10- How to fix
- How to enable dark mode in Instagram on Android and iOS
- How to answer phone calls on PC- Windows 10 version 18999
- Jio 6 Paise per minute plan
- Top 7 best movie streaming sites no sign up