Force download WMV with .htaccess
Everyone loves WMV! Not! Jokes aside, here’s what finally worked for me when trying to force download Windows Media Video (WMV) files.
The technique is surprisingly simple; just add this snippet of code to the root .htaccess file:
<Files *.wmv> ForceType application/force-download Header set Content-Disposition attachment Header set Content-type application/force-download Header set Content-Transfer-Encoding binary </Files>
As with many .htaccess tricks, there’s no editing required — just drop it in and done. Cheers!