Current time: 04-20-2014, 02:39 PM Hello There, Guest! (LoginRegister)

Post Reply 
addtype .webm .htaccess
02-24-2012, 11:47 AM
Post: #1
addtype .webm .htaccess
When adding to /home/username/example.com/.htaccess:

AddType video/webm .webm

And I run from my local machine:

curl --head http://example.com/site/files/2012/01/video.webm

I get an image content type:

HTTP/1.1 200 OK
Date: Fri, 24 Feb 2012 00:04:18 GMT
Server: Apache
ETag: "86cd0c2779283a9794ad2c6640278273"
Expires: Sun, 26 Apr 2015 09:50:59 GMT
Content-Length: 3131313
Last-Modified: Thu, 23 Feb 2012 09:08:44 GMT
Content-Type: image/webm
Find all posts by this user
Quote this message in a reply
02-24-2012, 11:26 PM
Post: #2
RE: addtype .webm .htaccess
Works on my machine.

Try this using this in an .htaccess file located in the parent directory:
RemoveType .webm

(it has to be parent directory, documentation says RemoveType is processed after AddType)

Customer since 2000 Cool openvein.org | Please don't feed the trolls. Angry
Visit this user's website Find all posts by this user
Quote this message in a reply
02-28-2012, 07:55 PM (This post was last modified: 02-28-2012 07:55 PM by ronin.)
Post: #3
RE: addtype .webm .htaccess
Tracked this down, and it is in WordPress that the mime is being incorrectly set:
http://core.trac.wordpress.org/ticket/20136
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: