R
R
rejjer2015-02-12 20:34:24
Apache HTTP Server
rejjer, 2015-02-12 20:34:24

What to write in .htaccess so that the server gives the file (video) for downloading, and not as a stream?

I tried AddType application/x-force-download .mp4 , but nothing happened..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2015-02-12
@rejjer

<FilesMatch "\.(?i:mp4)$">
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</FilesMatch>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question