ForceType works on host server, not local server

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

ForceType works on host server, not local server

Post by phice »

I've got a .htaccess command:
<Files "read">
ForceType application/x-httpd-php
</Files>
Both .htaccess and the file 'read' are the exact same for the local and host server. But, the ForceType command only works on the host's server, yet mine comes up as an HTML document.
Image Image
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe your .htaccess is not allowed to override httpd.conf settings
http://httpd.apache.org/docs-2.0/mod/co ... owoverride

http://httpd.apache.org/docs-2.0/mod/core.html#forcetype
Syntax: ForceType MIME-Type|None
Context: directory, .htaccess
AllowOverride: FileInfo
Post Reply