Web Analytics
TUTORIAL - Songs Playing in Browser instead of Downloading (FIXED) - StoreFront Forums

TUTORIAL Songs Playing in Browser instead of Downloading (FIXED)

Pedro

Forum Admin
Staff member
Trusted Uploader
Aug 21, 2021
1,422
2
1,971
113
Genesis Forum
storefront.com.ng
Downloading a music file instead of playing it in the browser

To make songs download instead of playing in browser, go to file manager. Edit .htaccess and add this code at the bottom.

Code:
<FilesMatch ".(?i:mp3)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:mp4)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:mpg)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:mov)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:flv)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock    No Thanks