Now you could use this just like you'd use Google Pages or code.Google.com for a similar purpose. But Google Pages has been replaces with Google Sites, and no longer supports direct uploading, which is kind of a let-down, because we need to directly upload webpages in order to test them on Google Drive. Google Code, on the other hand, has bandwidth issues. Hence, Google Drive is the best option you have for hosting your static website.
The requirements to publish are:
- The folder containing site assets must be public. Assets added to public folders must also be public on the web.
- Link to the files contained in the folder using the
web View Linkfolder ID plus the path to the file.
To host a website on your Drive, log into your Google Drive account from a web browser, and create a folder. What's important is the permission you set on that directory. This directory will host your web files, so it needs to be shared with the public, or else, no one will be able to see it.
Now that you've created a folder to host your files, it's time to put the files in. Upload all your web files in this folder. Now, you need to share it with the public.
To do this,
right click on the folder>> and then click on>> Share
Now, look under the "Who has access" section, and change the setting from Private to "Public on the web". Then, copy the link given on top. You'll need it for the next step.
The URL you just copied is the link to your shared file, and not to the hosting. There's a Some adjustment you need to make in the URL. The link you copied something like this: https://docs.google.com/folder/d/link-to-your-site.
You have to change it to https://googledrive.com/host/link-to-your-site.
For More instruction check out this page Google Instruction.
Now You are done!
I hope Steps are extremely Simple/easy if you have any trouble feel free to post any query below in comment box I will loved reply back as soon as time allow….. Thanks for reading our post… happy blogging….