I have been trying to set my server to do it. Without success.
Follows the description of my attempt:
I have created an index.xhtml file, changed the content in it to
"application/xhtml+xml" (<meta content="application/xhtml+xml;
charset=iso-8859-1" /> ) and uploaded it.
IE just fails to render it. Time to go to web server. Since I am using
server-side includes, I have added to the .htaccess file the following
lines:
AddType application/xhtml\+xml;qs=0.8 .xhtml
AddHandler server-parsed .xhtml
Options Indexes FollowSymLinks Includes
Now the server knows that xhtml files are to be served as
application/xhtml+xml and SSI are also usable with this extension.
Then, as suggested somewhere, a little browser-sniffing to serve IE and
other browsers not understanding the type application/xhtml+xml must be
done. Again, a few lines were added to the same .htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
RewriteCond %{REQUEST_URI} \.xhtml$
RewriteCond %{THE_REQUEST} HTTP/1\.1
RewriteRule .* - [T=application/xhtml+xml]
Now, IE is served the xhtml file as text/html and Mozilla is served
application/xhtml+xml. Is it?
You can test both files with IE and Mozilla, for instance:
http://excellentsite.org/index.shtml
http://excellentsite.org/index.xhtml
Could it be this way? If yes, why doesn't IE load the xhtml page ?!
________________________________________________________________
$0 Bannerless Web Hosting, 10 POP and Web Email Accounts, & more
Get It Now At www.doteasy.com
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************