Thursday 28 September 2017

How to Host your Websites on Google Drive


If you are looking for a place to quickly host your websites but don’t have access to any web server, Google Drive is a great alternative. You can use Google Drive to host basic websites or even complex JavaScript based web apps. You may upload and publish any kind of static content* on your website including HTML pages, images, CSS, icons, audio & video files including podcasts.

How to Host your Websites on Google Drive

FREE WEB HOSTING WITH GOOGLE DRIVE



If you are using the old Google Drive, you can easily host websites on Drive. First upload your website files to a folder inside Google Drive, set the sharing permissions of that folder as public, open the index.html file in the Google Docs viewer and then click the “Preview” link to get the URL of your website.

However if you have migrated to the new Google Drive, you’ll be disappointed to learn that Google has dropped the web hosting feature. You can still create public folders inside Drive but the option to publish that folder as a website is gone.

No worries as there’s still an easy workaround that will let you publish your websites on to Google Drive in a single step.

FROM DESKTOP TO GOOGLE DRIVE IN ONE STEP

Step:-1.) Just put all your website file in a zip file – or you may use this zip file
Step:-2.) click here to upload that zip file to your Google Drive.
Step:-3.) Once the file has uploaded, the tool will generate the public URL of your website in the same step.

If you are using the tool for the first time, you may have to click the “Authorize” button since the script needs permission to upload that zip file to your Google Drive.

Internally, this little Google Script is doing all the hard work for you. When you click upload, the app creates a folder inside your Google Drive.

Step:-4.) Changes the sharing permissions to public (anyone can view, you can edit) and then generates the googledrive.com URL using the ID of the new folder.

Also Read:-
There are a few things you need to know before hosting websites on Google Drive. One, you need to have an index.html as that file will be served when someone tries to access the homepage of your site. Second, Google Drive websites have a URL structure like googledrive.com/host/ and there’s no way to change the default URL.
If you are hosting a website on Google Drive but wish to serve it under your own custom domain, that’s not possible yet but you can follow a workaround.

The trick is easy – you just have to wrap your Google Drive website URL inside an IFRAME tag as shown in the following snippet:

<html>
 <head>
  <style>
    body { margin:0; padding:0; }
    iframe { position: absolute; height: 100%; width: 100%; }
  </style>
  <title>Google Drive Website</title>
 </head>    
 <body>
   <iframe src="https://googledrive.com/host/ABCD/" frameborder="0"></iframe>
 </body>
</html>
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 Drives serves your website over HTTPS and thus can also be used for hosting custom Facebook Pages since Facebook requires that custom pages are only served over secure HTTP.

[*] Google Drive cannot be used for serving dynamic pages like those generated through PHP scripts on a WordPress website.

Thanks for landing on this post, If you like my post then give your opinion and feedback in comment box.



Tags:- #How to Host your Websites on Google Drive, #Google drive host, #Free google hosting, #Host website in free of cost, #Host website in Google, #Computer tips tricks, #host website on google drive 2017, #google drive web hosting alternatives, #how to host a website for free with domain name, #google web hosting for small business, #how to host your website on google for free, #how to host your website on google, #google drive hosting website, #google drive hosting 2017, #How to host a website with Google Drive, #Google Drive web hosting platform, host your website on google drive 2017, google drive host website, #google drive host static website

3 comments:

Anonymous said... Reply To This Comment

No longer works :(

ashutosh said... Reply To This Comment

nice post.
Android & iOS Tricks

ashutosh said... Reply To This Comment

Nice post.
Android & iOS Tricks

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Labels

404 AdBlock Add-on Airtel GPRS Trick Airtel SMS Trick Alexa Amazon Amazon Kindle Amazon Prime Android Android 8 Android Oreo antivirus Apple Apple Mac ASCII Audacity Audio Authotkey Backup Balance Transfer in Vodafone Battery Bing Blogger Blogging Bookmarklet Browser Camera Chromebook clock Cloud colors command lines Computer Computer Tricks configuration Contact Creative Commons Credit Card CSS devolop DIY Doodle DOS Download Dropbox E-Mail eBook Email Email Attachment Embed Encryption English Error Evernote Eyes Facebook Facebook Tricks Feedburner Flipkart Font Foursquare Free Internet Free sms trick in Vodafone G Mail Gadget Game Getty Images GIF Gists Github Google Google AdSense Google Analytics Google Apps Google Chrome Google Contacts Google Currents Google DNS Google Docs Google Drive Google Earth Google Font Google Forms Google Images Google Map Google Photos Google Play Store Google Plus Google Print Google Reader Google Script Google Sheets Google Spreadsheet Google Translate GPRS Setting GPS Hacking Health App HelloFax Hindi Hoodie HTML Icons idea Image Editing Images IMEI Indian Railways Infographics Instagram Internet Internet Explorer Internet Tricks iOS iPad iPhone IRCTC iTunes iTV JavaScript JioCinema JioTV Junglee Kindle Language Translation Laptop Laptop. TV Life Time FREE GPRS Life-Style Link Linkedln Linux logo Make Money Online Microdoft Powerpoint Microdoft Word Microsoft Office Microsoft Outlook Mobile Mosaic Music Name Networking nexus Notepad OCR Online Shopping Open DNS OS Outlook Password PDF Petya Phillips Hue Lights Photogtraphy Pixel Play Station Podcasts Pokemon Pokemon Go Polls Print Productivity Proxy Server Pushbullet QR Code Ransomware Reddit Reliance Hack GPRS Reliance Jio RGB Ringtone Router RSS Safe Mode Samsung Galaxy S Scrabble Screen Capture Screen Sharing Screencast Secrets Security Send free sms from PC SEO Sierra Skype Slideshare SMBv1 SMS Snapchat Snapdeal Social Media Solution Sound Device Speech Recognition Sql Steam Sync Synology NAS Tata Docomo GPRS trick Teleprompter Torrent Trick Tricks TV Twitter UltraISO Unicode Unknown Extension Unlimited 2GB Unlimited 3GB Unlimited GPRS USB USB Security Key Video Editing virtual desktop Virus attack VLC Vodafone 110% working trick for GPRS Vodafone 3g Vodafone GPRS VPN wallpapers WannaCry Web Design Web Domain Website Wget Whatsapp WiFi Wikipedia Windows Windows 10 Windows 10 S Windows KN Windows Tricks windows updates Winows N Wolfarm Alpha WordPress XBox YouTube Zip
Twitter Delicious Facebook Digg Stumbleupon Favorites More