Ubuntu / Linux news and application reviews.

I'm not going to write about the web design part of Googlepages but about the hosting part: many people host images, JavaScript and other files on Google Pages (Ex: http://xxx.googlepages.com) but this free service is going to be closed soon. Below I will also tell you about a little trick to host .js (JavaScript) files on web hosts that do no allow you to upload such files (see Step 2).

Here is how to extract everything from your Google Pages account and move it to Fileden (or any other free web-hosting service that allows hotlinking):

Step 1: Automatically download all your Google Pages hosted files:
To extract all your files from GooglePages, use this tool and add your page address (for instance http://mypage.googlepages.com). The tool will create a list of URLs of all files that are currently hosted on your Google Page Creator account. Copy this list to the clipboard and save it in a text file (say files.txt).

Download wget (if you don’t have that already) and execute the following command:

wget -i files.txt

All your files will be saved to your computer. You can skip this if you want to just save them manually.

Step 2: Rename all your .js files to .txt. This, because most free hosting services don't allow you to upload javascript, but the javascript file can have any extension, it doesn't matter and the browser (all of them) still knows it's javascript.

Step 3: Use a free hotlinking file host to get an account, such as fileden. Zipp all your files, upload the zip file to filden (or any other alternative free file-hosting service that supports hotlinking), and after the zip file has been uploaded, use the fileden options to unzipp it and that's it. All your files are now moved. You can now replace the Googlepages links used in your website with filden's links.

Please note that fileden has a max of 1 GB upload space and 5 GB montly bandwith for free accounts but for small files such as javascript and images, it should be enough for everybody.

This post was inspired by Labnol (Step 1).