Web Hosting Talk







View Full Version : Downloads, eats up my bandwidth....Need Help


dgessler
08-04-2001, 02:53 PM
My website is going to get it's 5GB bandwidth eaten up in the second week of this month if I don't think of something to do. Well the download file is listed at tons of download indexing sites online including download.com, zdnet, and tucows (but tucows really isnt a problem because they upload your program to all their servers). The file is 2MB and I need to figure out a way to somehow once somebody clicks on the link to download the file (http://www.freestuffheaven.com/setup201.exe) it will somehow maybe redirect to another location where I uploaded the same file and not on my freestuffheaven.com hosting account (like on a fws provider). My host has cpanel and I noticed they have "mime-types" but I tryed deleting the default extension of exe and adding exe as a html/text kind of document but it still wouldn't work. Does anybody know of any way I can do this? Like maybe make the .exe file really a html file...? or some other waymaybe, thanks

The Prohacker
08-04-2001, 03:09 PM
This might work:

Make a .htaccess file, inside it, put the line:
AddType application/x-httpd-php .exe


Now delete your downloadable executable, and replace it with a text file called setup201.exe inside this text file add the line:

<? header("Location: http://www.location.com/to/your/newhost/setup201.exe"); ?>


You could do this with .htaccess, but in my experince it hasn't always worked, but if you want to give it a try:

Add this line to a .htaccess instead of the one above:

Redirect /setup201.exe http://www.newhost.com/setup201.exe