allow download of any files in uploads or img dirs
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_headers.c>
|
<IfModule mod_headers.c>
|
||||||
<FilesMatch "\.(?i:pdf|doc|docx|zip|txt|mp4)$">
|
<FilesMatch "^(uploads|img)/.+">
|
||||||
<If "%{QUERY_STRING} =~ /(^|&)download=1($|&)/">
|
<If "%{QUERY_STRING} =~ /(^|&)download=1($|&)/">
|
||||||
Header set Content-Disposition "attachment"
|
Header set Content-Disposition "attachment"
|
||||||
</If>
|
</If>
|
||||||
|
|||||||
Reference in New Issue
Block a user