Force download all files in a folder

Solution 1:

You can do it on an extension by extension basis with AddHandler

AddHandler default-handler php pl py jsp asp

However this is cumbersome as you need to keep on top of every possible extension. You can set the default handler for every file within a htaccess file with SetHandler. And this would be my preferred method. Simply enter this into your htaccess file.

SetHandler default-handler 

If you don't have permissions to do this in your htaccess, you'll need to get it entered in a Directory directive in your Apache configuration:

<Directory /path/to/dir>
    SetHandler default-handler
</Directory>