Re: to set file tye at apache module using htaccess
| From: | Rasmus Lerdorf | Date: | Thu, 16 Aug 2001 06:27:26 +0000 |
| Subject: | Re: to set file tye at apache module using htaccess | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62973@lists.php.net to get a copy of this message | ||
If you just want to set this for a single file, just use a
<Location /path/filename>
ForceType application/x-httpd-php
</Location>
in your httpd.conf file. .htaccess files are generally evil and should be
avoided if you have control over your httpd.conf file.
Note that the mime-type. There is no '4' on the end of it.
-Rasmus
On Thu, 16 Aug 2001, Jack wrote:
> Hi people
> this may be off this list a bit, But I want to make the apache webserver believe that a
> "html" file is my server is actually a "php4" file.
> I used the syntax below to set Apache module in file .htaccess and did not work still, as I
> wrote some php script to print text in an html file and did not do anything yet.
>
> **********************
> AddType application/x-httpd-php4 .html
> **********************
>
> What is the correct way to do this?
> Jack
> jacky@activelifestyle.com
> "Love your enemies, it will drive them nuts"
>