Re: Validator Rejects Valid URI

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.

-- 
<http://schneegans.de/>

Received on Friday, 4 July 2003 05:34:59 UTC