How To Upload Html To Google Drive
Nosotros're a big fan of cloud services on this weblog, and Vinay has written on Procedure Street about Dropbox vs Google Bulldoze in the by as well every bit a great guide on how to migrate to the cloud.
If y'all're wondering how to host a website on Google Bulldoze for free, well, I just did (and information technology took me 2 minutes!) and so I'll tell you all near it.
Even though the new Google Drive has made it harder to host websites, there's still a pretty easy workaround I came across. It comes in the grade of a Google Script written by an expert in the field, Amit Agarwal. First I'll show you this way — the easy way — then I'll explicate how you tin practice information technology without the script.
How to Host a Website on Google Drive using a Google Script
ane. Put all your website files in a .null file (.rar doesn't work, I tried). I made a sample website in a .zip file past modifying Amit's content, yous can download it here if y'all don't have any zipped webpages kicking around.
two. Open the Google Script folio and upload your .zip file.
iii. Hit upload file, and you should see this:
4. Enjoy your free spider web hosting!
The Difficult(er) Way
If you're learning to host a site on Google Bulldoze out of curiosity, you lot probably aren't satisfied with having all the piece of work done for you with a script. Unfortunately for you, it'due south not particularly techy or in-depth, information technology simply has more than steps.
1. Create a new folder in Google Drive
2. Upload the contents of your website'south .nix file and move them to the folder.
3. Correct click the folder and cull 'share', then 'avant-garde' at the bottom of the popup.
iv. Choose 'Public on the web' and relieve.
5. After hitting salve, you'll be given a public link but it will be a link to the folder your .html files are stored in on Drive, non an actual website.
6. So the adjacent thing we need to do is to change the link. Cut out the string of letters and numbers between id= and &usp, and paste it at the end of https://googledrive.com/host/
7. Navigate to your new link, and you should encounter your web page!
For a video tutorial on how to host a website on Google Drive encounter below:
Bonus tip:
If y'all're not a fan of your huge and ruthlessly forgettable URL, there's ever gweb.io, a service for people serious nearly hosting with Google Drive that allows yous to utilize your own URL, unlimited sites and costless SSL. Other options for using your ain domain are impractical, hacky or unprofessional, such as frame forwarding or using a shortening service like GDrives. For now, it seems like gweb.io is the best option we've got.
To acquire more about Google Drive, check out 25 Google Bulldoze Tips You've Probably Never Heard Before. Google Bulldoze is a neat way to host uncomplicated sites, only if you're looking to build a blog for your company, you lot should run across this post.
Source: https://www.process.st/how-to-host-a-website-on-google-drive-for-free/
Posted by: leetwentortund.blogspot.com
0 Response to "How To Upload Html To Google Drive"
Post a Comment