Host website on Google drive with custom domain for free - Devhelper  

Host website on Google drive with custom domain for free

Table of Contents


 

Host Your website on Google drive with custom domain

You may take advantage of Google drive’s free cloud storage to upload and publish any kind of static content. You can host any kind of files on Google Drive. Google Drive is a file storage and synchronization service developed by Google.


Host on Google drive

Here are the main reasons why you should do it.

It’s free and saves hundreds of dollars per year in web hosting.Drive Hosting is secure So Your website will never be down.It offers You No bandwidth limits and Down Time. Google drive is very reliable.It Not Needs any FTP software. If you want to replace something just replace the file in your Google Drive folder.

Disadvantages:

if your website was made with WordPress, Joomla or PHP, this will not useful for you. This is only for static websites or landing pages. Google Drive URL structure cannot be changed. But no worries there is a way to use, you can use custom domain name for your website.

Step 1: 

Create A /edit.html file. This file will be served when someone tries to access your website.

Step 2:

Next, we drop the website folder in Google Drive ideally in the root.

Step 3:

Now make this folder public.

Step 4:

Right-click on the folder and select get a shareable link. Before we continue further confirm the folder name starts with www.

Step 5:

Now open a new tab in your browser and open DRV.TW website

  • Choose 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 these steps.

Step 6:

Copy the URL and login to your domain provider. I recommend purchasing your domain names from namecheap.com. But You Can Try Others.

Step 7:

Select the domain you want to manage. Remove any name servers from your previous web hosting provider.

Step 8:

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 on drv.tw.
  • 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.

Step 9:

  • You must add a new URL redirect record.
  • In the value field type HTTP followed by your domain name.
  • You can take one more step to make your website load faster.
  • Go to “https://www.cloudflare.com” and create an account.
  • Add a new website.
  • Now Type your domain name.
  • Choose a free plan. It is 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 without any hosting charge.