Help - Forcing a mp3 files to download in a browser via htaccess

Hello, I have files directory in a self-hosted wordpress site
I am unable to force download mp3 files
all they do is open and play in all browsers,
I need to know how to download by clicking on link

I have placed below code in .htaccess

<FilesMatch “.(?i:mp3)$”>
ForceType application/octet-stream
Header set Content-Disposition attachment

anyone with a solution, please?

Welcome @samthingwise Happy you are here

  1. Set MIME type for binary file with application/octet-stream
  2. Set header on how to process the payload received i.e. download locally as an attachment
<FilesMatch "\.(mp3)$">
   ForceType application/octet-stream
   Header set Content-Disposition attachment
</FilesMatch>

In future, post questions that are not relevent to CyberPanel on developer communities such as StackOverflow or just use a search engine