- From: olivier Thereaux <ot@w3.org>
- Date: Tue, 24 Apr 2007 19:14:37 +0900
- To: Sierk Bornemann <sierkb@gmx.de>
- Cc: Sam Ruby <rubys@intertwingly.net>, "www-validator@w3.org Community" <www-validator@w3.org>
Hi Sierk, On Apr 24, 2007, at 18:53 , Sierk Bornemann wrote: > The MIME type on sierkbornemann.de is rewritten and set via a > mod_rewrite rule as follows: > > <IfModule mod_rewrite.c> > RewriteEngine on > RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml > RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0 > RewriteCond %{REQUEST_URI} \.html$ > RewriteCond %{THE_REQUEST} HTTP/1\.1 > RewriteRule .* - [T=application/xhtml+xml;charset=UTF-8] > </IfModule> > "Conflict between Mime Type and Document Type > The document is being served with the text/html Mime Type which is > not a registered media type for the XHTML 1.1 Document Type. The > recommended media type for this document is: application/xhtml+xml > ... > " ? The rule for XHTML 1.1 is that it should always be served as application/xhtml+xml. The technique you are using, to serve it conditionally as text/html, goes against that rule. -- olivier
Received on Tuesday, 24 April 2007 10:14:58 UTC