Jump to content

Archived

This topic is now archived and is closed to further replies.

grove101

ForceType Apache 2

Recommended Posts

hi

I have the following code in my .htaccess file
[code]
<Files *.mpg>
ForceType application/octet-stream
</Files>
[/code]

It works fine with FireFox but not with IE. In the httpd.conf file AllowOverride is set to All.

I tried the following code in Apache1.3

[code]
<Files *.mpg>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
[/code]

It works good with both FireFox and Internet Explorer, but when I use the same code in Apache 2 I get the following error in the error log

[code]
Invalid command 'Header'
[/code]

Any ideas how to fix the error ....

Regards
Grove101

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.