Hi, Folks will show you guys on how to make your users to download any file on your Wordpress Site, without using any plugin.
In other to achieve this we will use htaccess
Log in to your Cpanel, Navigate to File Manager
Go to Public_html
At the right top of the menu, click on settings and thick show hidden files.
Locate a file named .htacces and use edit to add this code
#my force download ,mp3 and mp4 AddType application/octet-stream .mp3 AddType application/octet-stream .mp4
ForceType applicaton/octet-stream Header set Content-Disposition attachment ForceType applicaton/octet-stream Header set Content-Disposition attachment#end of force download
This setup is only for mp3 and mp4, you can extend it by adding for files extensions like .pdf, etc.
Enjoy and share