Back htaccess

Skip the download dialogue using .htaccess

WRITTEN BY ON 25 Jan 2011
2,961 VIEWS • SHARES
0 comments

Usually when you try to download something from a web server you get a request asking whether you want to save the file or open it. To avoid that you can use the below code on your .htaccess file

Apache

AddType application/octet-stream .pdf
AddType application/octet-stream .zip
AddType application/octet-stream .mov
Join the discussion

Comments will be moderated and rel="nofollow" will be added to all links. You can wrap your coding with [code][/code] to make use of built-in syntax highlighter.