mod_rewrite help to change Content-disposition based on URI
snippet in htaccess

mod_rewrite help to change Content-disposition based on URI

user2409

SetEnvIf Request_URI ^/media/download/ force-download
Header set Content-Disposition attachment env=force-download