View Single Post
  #2   (View Single Post)  
Old 3rd December 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

I'm not sure if this is what you are looking for, but anyway..

Code:
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]
Additional info could be found in the links below:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
http://www.ibm.com/developerworks/xm...tml/index.html
http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html

Also, you may want to have a look at the DefaultType directive in the httpd.conf file. Check out mime.types too.

Good luck!
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote