Reputation: 1631
Firefox requires xhtml extension for mathml but IE will not display pages with xhtml extension (it displays a download dialog box instead).
I have tried apache content negotiation like so:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} .*MSIE.*
RewriteRule \.xhtml$ - [T=text/html]
but IE seems only to care about the extension. I have tried this on my local server where mod_rewrite is installed.
Upvotes: 1
Views: 480
Reputation: 1631
It seems that this works:
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !.*MSIE.*
RewriteRule \.html$ - [T=application/xhtml+xml]
RewriteCond %{HTTP_USER_AGENT} .*MSIE.*
RewriteRule \.html$ - [T=text/html]
</ifmodule>
If it weren't for internet explorer, I'd know so much less about all sorts of things!
Upvotes: 2