Im, hosting some .rar files on my site, but when I click on it to download it is loads up lots of text, but if I right click on on the link then say save to desktop, then it downloads but as .rar.txt and when I take of the .txt the file works like a normal .rar file. I have search this problem on google but didn't really find a answer. So does anyone know what code I need to have to get the .rar files to download correctly?
i guess thats the problem in your computer.. can you give us a link so that we can check the problem for you?
Ok, here is a link: Here is a .rar file. File: Click here to download Password: test I think it downloads fine with windows, but not on my Mac, but some sites have the same problem as me, but then there is another that will work fine, so thats why I thout maybe it can be fixed via HTML or somthing...
well if thats the case then even i shuld get the file as .rar.txt ?? but when i downloaded it i simply got it as .rar so i guess its just os erroe. also he mentioned that it works fine on windows just problem with mac
Yea, but how come it works with some sites but not other (and not mine) I was using the same browser too.
Don't worry I got some help from this other guy. This is what he told me to do and it worked! Create on your webspace folder a .htaccess file with the following content: AddType application/x-rar-compressed rar