.htaccess file not working

DaveFL

New Member
Just wondering if someone might have some ideas for me on this. I have a .htaccess file to uploaded my hostgator public_html directory to force a pdf download on my site. It's not working. I've used this exact .htaccess file before on a previous site with no problems. Here is the file code:

<Files *.PDF>
ForceType application/pdf
Header set Content-Disposition attachment
</Files>

Any Ideas?
 
Last edited:

kwoods

New Member
Have you tried putting the .htaccess file into your root folder instead of the public_html?
 

chrishirst

Well-Known Member
Staff member
Do Hostgator allow .htaccess MIME Type overrides on shared hosting these days?

I know they didn't at one time.
 
Top