show-notice
hide-notice

Wednesday, 14 August 2013

How to Host your Website on Google Drive


Introduction:

Here I will explain How to Host your Website on Google Drive.

Description:

The official procedure for hosting websites on Google Drive involves a couple of steps.
 
You need to upload your website files to a folder inside Google Drive, set the sharing permissions of that folder as public, open the index.html file that you uploaded in the Google Docs viewer and then click the “Preview” link to get the URL of your website.
The process may not be complicated but a little time-consuming for sure. There’s a better way though that will let you publish your websites on to Google Drive in a single step.

From your computer to Google Drive in one step

Just put all your website assets in a zip file. Once the file has uploaded, the tool will generate the public URL of your website in the same step. Isn’t that simple?

Public Google Drive Websites with different Web Domain

I’ll show an example here. This website is hosted on Google Drive and here’s the same website but hosted on a different web domain. The trick is easy – you just have to wrap your Google Drive website URL inside an IFRAME tag as shown in the following snippet:

The height and width attributes of the IFRAME tag should be set to 100% for the Google Drive website to occupy the entire screen. The only downside is that the URL in the address bar won’t change if you open a different page of the website since you are now browsing inside an embedded page.
    

    
    
    Google Drive Website
    
    
    
    
    

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com