apache rewrite rule application/xhtml+xml

raw

README.rst

Sends a content type header of application/xhtml+xml to clients that request it in their Accept: header

raw

vhost.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
    <Directory "/home/cweiske/www/cweiske.de/www/tagebuch">
        DirectoryIndex index.htm
 
        RewriteEngine On
        RewriteBase /tagebuch/
 
        RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
        RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
        RewriteCond %{REQUEST_URI} \.htm$
        RewriteCond %{THE_REQUEST} HTTP/1\.1
        RewriteRule .* - [T=application/xhtml+xml;charset=utf-8]
    </Directory>
 
Christian Weiske Christian Weiske
owner

History