Do you have an entire directory of download-only PDFs on your web server? You can change that directory's .htaccess file so that visitors are always prompted to download their PDFs. The trick is to send suitable Content-Type and Content-Disposition HTTP headers to the clients.
This works on Apache and Zeus web servers that have their .htaccess features enabled. In your PDF directory, add a file named .htaccess that has these lines:
This works on Apache and Zeus web servers that have their .htaccess features enabled. In your PDF directory, add a file named .htaccess that has these lines:
1 comments:
Hi,
The site is about the importance of .htaccess files, the file which control the apache webserver is very useful and allows you to do a lot of things. You should have the detail knowledge of this server to work comfortably. Thanks a lot.
Post a Comment