Question : Server (Apache?) Issue: RAR file opens up in browser rather then saving

http://realmsofkaos.net/test.rar .. Opens up as a htm file. Shoudln't do this ;)

How can I fix this? Is there any simple way to fix it using .htaccess?? I'm on a shared host so I believe theres not much I can do to edit the apache config file.

Thanks!

Answer : Server (Apache?) Issue: RAR file opens up in browser rather then saving

If the webhost has configured his system to listen to user configured .htaccess files, and he has allowed for the particualr .htaccess modification you're doing, then yes it will work.

Edit you .htaccess file to have the following line:

[code]AddType application/octet-stream .rar[/code]

This should make it download instead of open. You can read more about editing your .htaccess file here: application/octet-stream
Random Solutions  
 
programming4us programming4us