[rough notes]
XHTML
XHTML in Non-Compliant Clients
- The MIME type is 'application/xhtml+xml'.
An alternate for browsers without XHTML support is 'text/html'.
For Web administrators, the typical configuration for Apache httpd is:
RewriteEngine on
# If a browser cannot handle XHTML (e.g. IE7), serve it as HTML instead:
RewriteCond %{REQUEST_FILENAME} "\.(?:xht|xhtml)$" [nocase]
RewriteCond %{HTTP_ACCEPT} "!application/xhtml\+xml" [OR]
RewriteCond %{HTTP_ACCEPT} "application/xhtml\+xml\s*;\s*q=0([^.]|$)"
RewriteRule .* - [passthrough,type=text/html]