.htaccess config for HTML5 videos


/ Published in: Apache
Save to your folder(s)

Found answer here: http://community.godaddy.com/groups/web-hosting/forum/topic/ogv-in-firefox-for-html5-video/


Copy this code and paste it in your HTML
  1. RewriteCond %{REQUEST_FILENAME} !-f
  2. RewriteCond %{REQUEST_FILENAME} !-d
  3. RewriteCond %{REQUEST_URI} !=/favicon.ico
  4. AddType video/ogg .ogv
  5. AddType video/ogg .ogg
  6. AddType video/mp4 .mp4
  7. AddType video/webm .webm
  8. AddType application/x-shockwave-flash swf

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.