Skip to content

Instantly share code, notes, and snippets.

@glueckpress
Created April 5, 2013 08:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glueckpress/5317587 to your computer and use it in GitHub Desktop.
Save glueckpress/5317587 to your computer and use it in GitHub Desktop.
Safari blocks HTML5 videos from playing if directory is protected via .htaccess. Solution: Allow direct access to video files. (Here: also image files.)
# Allow direct access to video and image files in a protected directory
# Props http://stackoverflow.com/a/9078460?stw=2
<FilesMatch "\.(mp4|ogv|webm|jpg|png)$">
Satisfy any
order allow,deny
allow from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment