Getting .ogg Files to Work on GoDaddy
Was setting up some HTML5 audio on a site today, and noticed that the .ogg file was not playing in Firefox. After a bit of pulling out my hair, I realized that GoDaddy did not have this mime type setup on my server. So, I tried this in my .htaccess file:
AddType audio/ogg .ogg
And viola! HTML5 audio in Firefox.
Leave a Reply
I’m guessing you’re using Linux hosting? For a windows server you need to use a web.config file to define the MIME. Unfortunately I’m mobile atm and do not have the code snippet.Link to comment
Interesting. I’d like to see the code snippet. I am on Linux hosting.Link to comment