Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish a Google Drive Website with custom Domain [closed]

i've heard that you could publish a static website in google drive in a public folder, and i'm wondering how can i configure my domain to that website hosted in drive.

Thank you

like image 507
Edgar Avatar asked Nov 30 '12 13:11

Edgar


People also ask

Can you publish and unpublish a Google site?

If you no longer want your site to be available online, you can unpublish it. You can still access and update your site content. You can also republish the site using the same URL or a different URL at any time. If people try to visit your unpublished site, they'll see an error message.

Can you publish a Google site privately?

On a computer, open a site in classic Google Sites. At the top right, click Share. Under "Who has access," click Change. Choose who you can see your site.

Can you change a Google site URL after publishing?

Yes: You can change your Published Google Sites URL at any time as long as it's available (not being used by another website). To change your URL, click on the PUBLISH SETTINGS button and adjust as needed. You do not need to unpublish first.


1 Answers

For now, you cannot map your own custom domain to Google Drive hosting (i.e. using CNAME or A records), but you can do one of these:

  • Set a redirection on your domain to Google Drive, e.g. by uploading an index.php file with <?php header("Location: https://googledrive.com/host/VERYLONGFOLDERID"); ?>
  • Use the free service G Drives, which provides custom short URLs (aliases) for Google Drive hosting
like image 185
niutech Avatar answered Sep 28 '22 05:09

niutech