Re: to set file tye at apache module using htaccess

From: Date: Thu, 16 Aug 2001 18:26:30 +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-62975@lists.php.net to get a copy of this message
In response to Rasmus, I need to make this for all html files under a domain, not just one file. Is there anyway to do this? Jack jacky@activelifestyle.com "Love your enemies, it will drive them nuts" ----- Original Message ----- From: Rasmus Lerdorf <rasmus@php.net> To: Jack <jacky@activelifestyle.com> Cc: <php-general@lists.php.net> Sent: Thursday, August 16, 2001 1:27 AM Subject: Re: [PHP] to set file tye at apache module using htaccess > 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" > > > >

« previous php.general (#62975) next »