De flesta webbservrar serverar XHTML-innehåll som text / html, vilket definitivt är rätt sätt att hantera XHTML-dokument. Om servern inte gör det korrekt kan du tvinga den till Apache-servrar med .htaccess:
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=ISO-8859-1)"