|
.htaccess
This tutorial will demonstrate how to force a web browser to always save a file rather than view it. To make your files download automatically, place them in a directory with a .htaccess file containing the following:
Replace where it says "FileExtention" with extention of the kind of file you'd like be downloaded automatically. You can create a new line for each type of file. For instance if you'd like all the .gif files and .jpg files to automatically download, then your .htaccess file would have the following two lines in it:
|