Publish a Google Drive Website with custom Domain

11,423

Solution 1

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

Solution 2

Link to blogpost about this: http://googleappsdeveloper.blogspot.nl/2012/11/announcing-google-drive-site-publishing.html

Link to Google Drive SDK documentation: http://developers.google.com/drive/publish-site

Share:
11,423
Edgar
Author by

Edgar

Updated on July 09, 2022

Comments

  • Edgar
    Edgar almost 2 years

    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