On 4/29/06, Michał Pałka <[EMAIL PROTECTED]> wrote:

RewriteEngine on
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
RewriteRule \.html$|/$ - "[T=application/xhtml+xml;charset=utf-8]"

I guess that I'm missing here some strange interaction between
mod_rewrite and DirectoryIndex.

Probably.  I bet you can get around the problem by letting mod_rewrite
do the processing normally done by mod_dir.  For example:
RewriteRule (.*)/$ $1/index.html "[T=application/xhtml+xml;charset=utf-8]"

Joshua.

Reply via email to