mod_rewrite rules to serve application/xhtml+xml
The following mod_rewrite rules will serve HTML files as application/xhtml+xml to supporting browsers.
Source: Mark Pilgrim, The Road to XHTML 2.0: MIME Types.
RewriteEngine on RewriteBase / 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]
Source: Mark Pilgrim, The Road to XHTML 2.0: MIME Types.