Re: htaccess
| From: | Tim Streater | Date: | Mon, 08 Jul 2013 08:54:00 +0000 |
| Subject: | Re: htaccess | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-321585@lists.php.net to get a copy of this message | ||
On 07 Jul 2013 at 21:22, Tedd Sperling <tedd@sperling.com> wrote:
> Confirmed. Those two lines cause the problem.
>
> However, commenting out those lines causes other problems.
>
> Are there similar statements to these:
>
> AddType application/x-httpd-php .php .htm .html
This one tells apache to recognise .php, .htm, and .html as suffixes of files that need to be sent
to PHP. You probably don't want to remove that [1].
> AddHandler x-httpd-php5-cgi .php .htm .html
Dunno what this one does.
[1] But, having said that, realise that *all* files with those suffixes will be sent to PHP by
apache, whether they contain any PHP code or not. Is that what you want? If I have an html file that
contains some PHP code, I tend to use .phtml as suffix and so my AddType looks like:
AddType application/x-httpd-php .php .phtml
--
Cheers -- Tim