Skip to content Skip to sidebar Skip to footer

Set Name Of The Download File Even If Download Link Redirect To Another

I have a page http://example.com/1.html and on it I have a link http://example.com/1.mp4 Download which redirect to another link

Solution 1:

The real Question is: Why do you redirect? I guess you're using htaccess? Then use a normal rewrite, not a redirect.

Edit:

Your PHP-Script should at least provide a Filename per header:

header('Content-type: -whatever type this is-');
header('Content-Disposition: attachment; filename="My-Super-Video.mp4"');

Post a Comment for "Set Name Of The Download File Even If Download Link Redirect To Another"