Options +Includes # See Calvin Smith's "Serving XHTML Correctly Using Apache" # http://protempore.net/~calvins/howto/xhtml-apache/ # for details on the following code, which works around # application/xhtml+xml issues with MSIE. RewriteEngine On AddType application/xhtml+xml;q=0.8 .shtml #RewriteBase / RewriteCond %{REQUEST_URI} \.shtml$ RewriteCond %{HTTP_USER_AGENT} MSIE [OR] RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml\s*;\s*q=0\.?0*(\s|,|$) RewriteRule .* - [T=text/html] # If MSIE was intelligent, we could replace the above with a simple #AddType application/xhtml+xml .shtml