I had to put some links in my PRODUCTION FLARUM site, to download Metatrader 4 files, a forex trading platform
By default the "mq4" extension of the metatrader is interpreted as a text file by all the browsers
So if i put the direct link or
<a href="https://nova4x.eu/assets/files/uploads/SpecialForce-November-V02.mq4">SpecialForce November V02</a>
All the browsers display the text page, beside the code loses the required format and cannot be copied and pasted as a new metatrader program
I tried the new DOWNLOAD tag, but it works only in Chrome and few others
<a href="https://nova4x.eu/assets/files/uploads/SpecialForce-November-V02.mq4" download>SpecialForce November V02</a>
So I coded this simple down-november.php file
<?php
$file = 'https://nova4x.eu/assets/files/uploads/SpecialForce-November-V02.mq4';
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename='" . basename($file) . "'");
readfile ($file);
?>
...and I put the call to the php file in the links, i.e.
<a href="https://nova4x.eu/assets/files/uploads/down-november.php">SpecialForce November V02</a>
So I obtain the right download without touching anything else
Only a two cents solution, but It could help others