Ich habe noch mal einen Test gemacht:
RewriteCond %{REMOTE_ADDR} ^123\.123\.123\.123$
RewriteRule /test1/$ /testeite.php [L]
RewriteCond %{HTTP_USER_AGENT} bot [NC]
RewriteRule /test2/$ /testseite.php [L]
GET /test1/ HTTP/1.1
Host:
www.domain.tld
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041128 Firefox/1.0 (Debian package 1.0-4 bot)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Date: Thu, 13 Jan 2005 13:15:37 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_gzip/1.3.19.1a
Keep-Alive: timeout=10, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
Content-Encoding: gzip
Content-Length: 1782
GET /test2/ HTTP/1.1
Host:
www.domain.tld
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041128 Firefox/1.0 (Debian package 1.0-4 bot)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Date: Thu, 13 Jan 2005 13:16:24 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_gzip/1.3.19.1a
Vary: User-Agent
Keep-Alive: timeout=10, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
Content-Encoding: gzip
Content-Length: 1782
Für mich sieht das so aus, dass der Vary-Header durch RewriteCond %{HTTP_USER_AGENT} erzeugt wird.