htmlgoogle-sitesgoogle-sites-2016

Google Sites HTML export keeps redirecting to live site


I was trying to export a Google Site I made for a project. I used wget to spider through every page and to download the html files and linked content. When I try to open "index.html" in Chrome, it does open the local HTML file, but it redirects me to the live version immediately after.

Is there anyway I could modify the HTML code so that it won't head straight to the actual website? I just want to have a local copy of it for reference, and I don't want to store it on Drive.

As the HTML file is too big to type out, I have provided it on Pastebin here.

.

Solution

  • You need a better question. No website works offline, or they do if you download all the files to your user’s computer so the user can view it offline. But at some point they had to visit it online to get it.

    Or you save it as an html site and hand it to them on a USB drive. That’s offline to that extent. But then it’s not really a website, its an html file.

    Or otherwise, if you need a website for your school which can be used by anyone through internet / intranet, you have two options -

    1. Create and host a website in an online server
    . a. You have to buy space and deploy a server yourself.
    . b. They will a run website in their webserver for you. You just need to give money

    2. Deploy a webserver in the school's any one machine and get it in other machines.

    Rephrase the question for a better answer.