Jason Foss wrote:
Is anyone aware of a good reference on configuring Apache to serve the
files as the correct MIME type? Something in English would be good - a
system administrator I'm not! Does it need to be set up in a per-site
basis (as they're all set up as Virtual Hosts.) I'm assuming this can
be done with .htaccess files?

Again, the article I mentioned http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html has a suggested few lines of code for Apache (which can either be used in httpd.conf, or an .htaccess file (which can be site wide, if it's in the site root, or can be set on a per-directory basis depending on where you save it)


RewriteEngine on
RewriteBase /
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]

Patrick H. Lauke
_____________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.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
******************************************************



Reply via email to