Support » Fixing WordPress » .m4a and .htaccess problems

  • I put a link on my wordpress for an audio file (.m4a) but when clicked on or right-click downloaded, the content keeps coming out as a .txt file. I tried entering “AddType audio/mp4 .m4a” to the .htaccess file, but that didn’t change anything.

    is anybody else having this problem or might have a solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff


    With most hosting providers, modifying the .htaccess file with “AddType” won’t work due to security precautions. If you have a cPanel-based host, login to cPanel, select the “MIME Types” pane, and enter “m4a” as the extension and “audio/mp4” as the Mime type. If you don’t have a cPanel-based hosting provider, contact your provider and find out how to add that information to your server’s MIME Type database.

    I experimented with this a bit on my webhost server using Cpanel. I don’t believe “audio/mp4” is the correct MIME type. After adding this MIME type, I downloaded an .m4a audio file from my site. Firefox appended .mpg to the end of the file because it considered it a mpeg-4 movie, and then my Windows laptop associated the movie file with QT, of course, rather than with iTunes.

    I did some more research and found “audio/x-m4a” to be the correct MIME type. My testing showed this to work correctly. The filename does not get appended with another extension, and the audio file is correctly associated with iTunes. Your mileage may vary.

    Here’s my source for the info….

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.m4a and .htaccess problems’ is closed to new replies.