is possible configure .htaccess file in way specific header sent files of given mime type? more specifically, want send content-disposition: attachment header text/html files leaving other file types unaffected. names , extensions of such files not known priori since files user uploaded.
after lot of search, unable find solution sending unique headers based on mime type. but, closest thing found to send special header based on file type.
to send special header .etc extension file use:
<filesmatch "\.(?i:etc)$"> header set content-disposition: attachment </filesmatch>
Comments
Post a Comment