im works only on a private page with some videos, access to which is possible only through htaccess. all videos are encoded in html5, and the site works fine for every browser without an htaccess file.
after placing the htaccess file on my server, safari doesn't download mp4 video. in charles I get "401 authorization required".
I checked a few posts here on the same topic, but have not yet found a solution. if someone can press m in the right direction, go ahead!
some people solved this problem by adding mime types to the htaccess file (see below). didn't work for me ... any ideas?
htaccess in the root folder
AuthUserFile /rootpath/.htpasswd AuthGroupFile /dev/null AuthName "Password Protected Area" AuthType Basic AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/mp4 .mov AddType video/webm .webm <limit GET POST> require valid-user </limit>
htacess in the video folder
AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/mp4 .mov AddType video/webm .webm
even tested it with some videos containing html5, so it can't be the wrong codec. keep in mind, it works fine without the htaccess file, so I assume my configuration is still wrong. but I have no idea where the error is ...
source share