Il corretto MIME Type per i documenti XHTML 1.1 è application/xhtml+xml
. Tuttavia, non tutti i server supportano questo tipo di contenuto. Possiamo rimediare utilizzando il file .htaccess
.
Aggiungete il seguente codice al file .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]"