Re: Validator Rejects Valid URI

On Friday, July 4, 2003, at 02:31 AM, Christoph Schneegans wrote:

> Bjoern Hoehrmann wrote:
>
>> The CSS Validator sends an Accept header like
>>
>>   Accept: text/css, text/html, text/xml, application/xhtml+xml,
>>     application/xml, image/svg+xml, */*;q=0
>>
>> Your server responds with
>>
>>   HTTP/1.1 406 Not Acceptable
>>   (...)
>>
>> to such requests. I am not sure what causes this behaivour, (...)
>
> Requesting <http://w007.org/kristin> with
>
>   Accept: application/x-httpd-php
>
> returns "200 OK", so this behaviour is probably due to a directive
>
>   AddType application/x-httpd-php .php
>
> which should read
>
>   AddType text/html .php
>
> to support content negotiation. PHP should be enabled by using an
> AddHandler directive instead.

Thanks for the information! I'm surprised the PHP folks say to use 
AddType -- I couldn't even find information on php.net for using 
AddHandler instead, except for the CGI version.

I changed the directives and now the CSS validator accepts the response 
given. Thanks again!

- Ben

Received on Friday, 25 July 2003 11:26:05 UTC