2

I have a simple website that I'd like to host on Google Drive. I have the contents separated into multiple folders, one for HTML, one for CSS, etc... and they're all stored in a main folder which I put up on Google Drive. I can open any individual page on the site, but links to CSS, JavaScript, videos, and even other HTML pages aren't working. I know it can be done, I did it a few months ago, but don't remember how, and I can't find any helpful online tutorials. If someone could explain to me how to do this, preferably without altering any of my code, that'd be great. If it matters, my current links to HTML in the same folder look like example.html and links to other folders look like ../OtherFolder/example.css. Thanks!

1

1 Answer 1

3

First, 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.

Further, make sure to change the sharing permissions to public, which generates the googledrive.com URL using the ID of the new folder.

1
  • "the ID of the new folder" - I think that's an important point... to share the root folder that contains the website files, not the individual files in that folder, which is what the Google Help Document appears to suggest.
    – MrWhite
    Jan 8, 2016 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.