Jump to content

ForceType Apache 2


grove101

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
Link to comment
https://forums.phpfreaks.com/topic/25553-forcetype-apache-2/
Share on other sites

Archived

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

×
×
  • Create New...

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.