September 29th, 2008
Podcast: Play in new window
| Download
I had a problem when I posted up my last podcast. No more space on my Web host. I host my Web site with Euro-Reg and they give me a meager 500 MB of space. I had to remove one of my old podcasts just to make space for the new one to go up.
I looked at moving to a new hosting solution, but it was going to cost me $120 a year, and I've still got a few months left with Euro-Reg before I need to renew. Then I remembered about SkyDrive - part of Windows Live. Because I have a Hotmail account going back donkey's years I automatically have a Live account that gives me 5 GB of space for free.
So the solution to my problem is to put my MP3 files on Sky drive and just redirect traffic to the new location of those files.
Adding the files is easy. Just sign into Windows Live, go to SkyDrive, click Add files:

Once you upload files, you need to discover what their URL is. Unfortunately, they don't all live in their own directory. So, for example, I created a folder called podcasts, but the URLs of the files in that folder don't contain a podcasts directory which means I can't just redirect everything in the podcasts directory on my Web server to the podcasts directory on SkyDrive. Unfortunately, you can't rely on any part of the URL being the same for different files. This means you have to redirect each one individually. This stinks and we can only hope Microsoft realises this and fixes it. For now you've just got to work with what you've got.
Click on the icon for one of the files you uploaded. This displays it on its own page. Right-click the icon on this page and copy the location of the file. This will give you an ugly big URL like this:
http://ubpq3q.bay.livefilestore.com/y1prhoUMaUaRKTKYapF5RrPEgkMKc5XUgMd4tWocxrw5LDC0oWaw5IhRTBE_jSZOcKZUvzwwlhh9vs/ITauthor-podcast01-01Dec2005.mp3?download
Remove the last bit. The long ID string identifies the file so you don't need the file name. This reduces the URL to something like:
http://ubpq3q.bay.livefilestore.com/y1prhoUMaUaRKTKYapF5RrPEgkMKc5XUgMd4tWocxrw5LDC0oWaw5IhRTBE_jSZOcKZUvzwwlhh9vs
Now you've got the URL, all you need to do is add a Redirect statement to the .htaccess file in the Web root directory of your Web host. This is a single line taking the form:
Redirect <old directory/file> <new URL>
Where the old directory or file is denoted as a path relative to the location of the .htaccess file.
So, to redirect the file ITauthor-podcast03-16Dec2005,mp3 to its new location on SkyDrive I added:
Redirect /wp-content/uploads/podcasts/ITauthor-podcast03-16Dec2005.mp3 http://ubpq3q.bay.livefilestore.com/y1pC8IalwMyNgTVgzoON30m5vmKc0gRTei4qqcoQF88Nkbd1Oivca-2OmkaXPJr2kEK5WCDGzf82ns
Annoyingly, you need to do this for each file. What would have been nice would have been if my SkyDrive podcasts directory had a URL like http://alistairchristie.spaces.live.com/podcasts, then I could have done:
Redirect /wp-content/uploads/podcasts http://alistairchristie.spaces.live.com/podcasts
and all my podcasts would be picked up from SkyDrive without having to edit the .htaccess each time I add a new one.
Anyway, for now it saves me having to fork out cash just for more disk space.
Potentially similar posts