Answer the question
In order to leave comments, you need to log in
Downloading an image file from a link using .htaccess - how?
How to make it through .htaccess so that if we set some GET download variable equal to 1 when accessing a file, then the file does not open in the browser but starts downloading?
For example, to make the following download link possible:
mysite.ru/1.jpg?download=1
<FilesMatch "\?download=1$">
Header set Content-Disposition attachment
</FilesMatch>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question