benjamin95/StreamBox/master/web/.htaccess - Htaccess File

benjamin95/StreamBox/master/web/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>

<IfModule mod_headers.c>
  <FilesMatch ".(mkv|avi|mp4|mp3|pdf)$" >
    ForceType application/octet-stream
    Header add Content-Disposition "attachment"
  </FilesMatch>
</IfModule>

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache