adding hosting XHTML support


XHTML support

by default, XHTML will be served up as HTML. what you will get is "tag soup" and improper rendering. you must modify .htaccess or httpd.conf (you may have torequest that this be done by your hosting support folks) according to this article.

you can also put this in your file on your hosting.

comment out a certain set of mod rewrite rules by putting a hash (#) in front:

#RewriteEngine on
#RewriteCond %{HTTP_USER_AGENT} ((.*MSIE.*)|(Lynx.*))
#RewriteCond %{REQUEST_URI} \.xhtml$
#RewriteRule .* - [T=text/html]

add this:

#handle XHTML properly
AddType application/xhtml+xml;q=0.8 .xhtml
DirectoryIndex index.xhtml index.html
<IfModule mod_rewrite.c>
  RewriteEngine on
  # Uncomment RewriteBase line if adding inside per-directory 
  # configuration files (e.g., .htaccess):
  # RewriteBase /
  RewriteCond %{REQUEST_URI} \.xhtml$
  RewriteCond %{HTTP_USER_AGENT} MSIE [OR]
  RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml\s*;\s*q=0\.?0*(\s|,|$)
  RewriteRule .* - [T=text/html]