Almost every online users must have used Google drive for basic files storage or to share some documents and spreadsheets with your classmates and colleagues. But today we are going to talk about an extra feature of Google Drive which we may not have thought of. Google drive is popular for cloud file storage, but today we are going to learn how to host your website using Google Drive.
Okay assuming you have a google account. Let’s begin
- Go to Google Drive
- Create a Public Folder
- Put all your website data on that folder
- Open and preview the index.html file and you are done.
Making a folder public
To make the folder, right click on that folder, click share>share and click on “change” below “who has access” and make it to public.
To open and preview the html file
First click one the index.html file and click on “open” which is at the bottom right corner of the screen. When the editor opens just click the “preview” button which is at the top bar.
And yes, you are done. Look at the adress bar, the link looks like this. https://googledrive.com/host/0B6Gc0J5ezclicFQweG1uTlJ4anM/index.html
That is the web url of your website. You can use various url shortner or url redirections to make your site address look systematic. I suggest you use Google url shortener.
Note: Always use the url of the index.html else you will see the folder view of your folder, not the web page. And if you want to host your site with custom domain name, Google drive does not support hosting with custom nameservers.