Easy
guidelines to setup force download of all files icluding mp3 and mp4 files on wordpress using htaccess
How to
enable force download has been one the major challenges faced by many wordpress
users especially entertainment bloggers who basically focused on uploading of music, videos, and a times
free music instrumental beats for their visitors to download.
But it is
very discouraging when music or instrumental which are supposed to start
downloading after clicking the download icon start playing the song, this
happens when making use of chrome or firefox to download on most sites but the
download links work perfectly when making use of opera browser.
Fine we
just need to talk about the challenges most people faced before talking about
the solution or the way out. In this post we’ll be taking you through easy
guidelines to enable force download on wordpress sites through cpanel, after
applying this methods your download links will start working perfectly as you
want it to be.
Easy Guidelines To Enable Force Download On
Wordpress Sites Through Cpanel
Step 1
All you have to do at the first stage is to locate or go directly to
your hosting cpanel, all hosting has a unique link to their cpanels but you can
also make use of the general way be use using this Url.com:2083 eg
(femisweb.com.ng:2083) then input your username and password to login.
Step 2
After you have successfully logged in kindly locate your file manager in the cpanel open the
cpanel and scan through to look for Public_html,
open the public_ html and search for Htaccess.
Step3
This is the final and vital part of all after locating your htaccess open it iand paste the code
provided below
<FilesMatch ".(?i:mp3)$">ForceType application/octet-streamHeader set Content-Disposition attachment</FilesMatch><FilesMatch ".(?i:mp4)$">ForceType application/octet-streamHeader set Content-Disposition attachment</FilesMatch><FilesMatch ".(?i:mpg)$">ForceType application/octet-streamHeader set Content-Disposition attachment</FilesMatch><FilesMatch ".(?i:mov)$">ForceType application/octet-streamHeader set Content-Disposition attachment</FilesMatch><FilesMatch ".(?i:flv)$">ForceType application/octet-streamHeader set Content-Disposition attachment</FilesMatch>
After applying this codes into the htaccess kindly save
changes then go back to your site reload it and try to download and song to
check.
0 Comments: