Hello There, Guest!

l Register
Current time: 05-10-2024, 04:25 AM
facebook twitter youtube google+ feedburner
  • http://tricksduniya.com
  • Welcome the world of CRYPTO CURRENCY
  • visit daily
  • For Whatsapp Official Group Contact Our Modrate
  • Mr. Paramjit Singh = 08295205000
  • Mr. Mack = 08295943112


Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING > MOBILE ZONE > USEFUL APP'S AND TIPS update's > host your website on google drive >

 Replies: 0    views: 319
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 host your website on google drive
Download App
02-28-2015, 03:34 PM,
Offline
Administrator
Joined: Nov 2014
Mesajlar : 609
Konular:
Rep Puanı: 7

Points: 0₹
Points: 0₹
#1
host your website 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.
Also see: Host your Website on Google App Engine
From Desktop to Google Drive in one step
Just put all your website file in a zip file – or you may use this zip file – and thenclick here to upload that zip file to your Google Drive. 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, 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.
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.
Google Drive Websites on Custom Web Domain
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.
I’ll show an example here. This websiteis hosted on Google Drive and here’s thesame 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:


  1. <style>
  2. body { margin:0; padding:0; }
  3. iframe { position: absolute; height: 100%; width: 100%; }
  4. </style>
  5. </span><span style="color: #f1f2f3;" class="mycode_color">Google Drive Website</span><span style="color: #8ac763;" class="mycode_color">


  6. src="https://googledrive.com/host/ABCD/" frameborder="0">


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.

Possibly Related Threads…
How To Use Google As A Proxy Server


admin signature
                                Heart TricksDuniya.com Heart
                    keep Visiting TricksDuniya
              Don't Forgot to Register Yourself!



02-28-2015, 03:34 PM
Reply
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How To Use Google As A Proxy Server Avishkar Singh 0 410 11-26-2015, 02:39 PM
Last Post: Avishkar Singh
  Website Hacking* Yovt 0 351 10-30-2015, 08:11 PM
Last Post: Yovt
  Watch and Download Your Google Search History easily! AmAn SrivaStava 0 353 10-24-2015, 07:49 PM
Last Post: AmAn SrivaStava

Forum Jump:

Powered By Mack Doun
© 2015-2024 Paramjit Singh.
TricksDuniya theme TricksDuniya © 2015.