Created
April 5, 2013 08:30
-
-
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.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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