Posted By

darylclaudio on 01/20/10


download htaccess apache force

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Forced download of a file with .htaccess

 / Published in: Apache

To force the user to download certain filetypes in the current directory.

  1. <Files *.*>
  2. ForceType application/octet-stream
  3. Header set Content-Disposition attachment
  4. </Files>

Report this snippet  

You need to login to post a comment.