.htaccess tutorial

htaccess Elite


PDF mod_deflate questions

Anything not fitting into other categories

PDF mod_deflate questions

New postby Dylan » 27 Jun 2008 01:13

Newbie here.

I have some pdf files embedded in html and when I access them on my wamp server they open, as I expect they should, in the browser, but when I upload the folder to my remote site and try to view them I am getting the error msg "file does not begin with '%PDF-'."

I think this is because the Apache 2.2 server my remote site is on is compressing the pdfs and making them illegible to the reader??????

Can anyone help me with this? I have tried a few times to write an .htaccess file to exclude the pdf files from the mod_deflate compression, but either nothing happens or I get an error before the index page can load.

Can someone tell me if it is possible to do this with an .htaccess file? Or is it something that can only be done in the httpd.conf file?

If it is possible, can someone walk me through how to write the .htaccess file to do this?
Dylan
 
Posts: 1
Joined: 27 Jun 2008 00:52

Return to Main