Searching more info found this code:
<FilesMatch "\.(mov|mp3|jpg|pdf|mp4|avi|wmv)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Worked for me.
More Related Contents:
- How can I use .htaccess rewrite to redirect root URL to subdirectory?
- .htaccess redirect all pages to new domain
- How to Block Spam Referrers like darodar.com from Accessing Website?
- .htaccess – how to force “www.” in a generic way?
- convert original URL to friendly URL
- .htaccess redirect www to non-www with SSL/HTTPS
- htaccess Access-Control-Allow-Origin
- .htaccess Rewrite to Force Trailing Slash at the end
- ReWrite rule to add .html extension
- Password protecting a directory and all of it’s subfolders using .htaccess
- Rewrite URL after redirecting 404 error htaccess
- rewrite a folder name using .htaccess
- .htaccess not working on localhost with XAMPP
- How to remove .htaccess password protection from a subdirectory
- How to do htaccess redirect based on cookie value
- Need to redirect all traffic to https
- Redirect .php URLs to URLs without extension [duplicate]
- .htaccess, proper rewriting of directory and file with same name
- PHP Rewrite Rules
- .htaccess to redirect images
- .htaccess redirect – automatically add www. if no subdomain exists
- Ban IPs from text file using htaccess [closed]
- Redirect to HTTP non-www to HTTPS www htaccess
- htaccess rewrite url remove subdirectory
- Rewrite URL with .htaccess for multiple parameters
- .htaccess redirect
- Using mod rewrite to change URL with username variable
- How to Block an IP address range using the .htaccess file
- Exclude folder from htaccess
- Using regular expression in htaccess for 301 redirects