What are the .htaccess commands which force media files like (mp3/mp4) to download instead of streaming online? [Important| Revised 2019]
If you want to have the visitors force download the media files like mp3/mp4 instead of streaming online then this will require a small bit of .htaccess code to be added in your htaccess file.
Steps to force download any mp3/mp4 file instead of streaming online: [Updated May 2019]
step::1 Login to your cPanel
step::2 Click on the File Manager section
step::3 Now go public_html and find .htaccess file
step::4 Click on .htaccess file to Edit
In this file you have to write a code
AddType application/octet-stream .mp3
AddType application/octet-stream .mp4
You can use this ,htaccess code to force download any file in any format such mp3, mp4, pdf, jpg, mov,avi etc
The only change you need to make is changing its extensions.
Suppose you want to force download any pdf file so what you need to do is just write this code
AddType application/octet-stream .pdf
Hope this helps you:-)
Thanks for Reading!!!!
Tags: cheap linux hosting, buy linux hosting, cheap reseller hosting, buy reseller hosting, best reseller hosting, cheap web hosting, cheapest web hosting, cheapest reseller hosting, cheap reseller host, cheap linux host, cheapest linux hosting, best linux hosting, best web hosting