Force Download Mp3 File

Asked by:
HubFans / n/a Points
Time:
2014-10-08 12:29 pm EST
Category:
How To
Hits:
392
How To Force Download Mp3 File by .htaccess method ???

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2014-10-08 1:30 pm EST
Hello,

Thanks for the question! When I researched this question, I found the following code which needs to be added at the end of your .htaccess file:


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



If you need more information on editing the .htaccess file, please see How to edit your .htaccess file.

Kindest regards,
Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}