httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Smith <...@iii.co.uk>
Subject Server variables in .htaccess files under 1.3
Date Tue, 24 Mar 1998 11:12:21 GMT
Folks,

Apologies if this has been raised before, but I've just encountered it
and can't see any mention in the docs or bug reports.

I have rules like this which work fine under 1.2

RewriteEngine on
RewriteCond /www/%{SERVER_NAME}:%{SERVER_PORT}%{REQUEST_URI} !-f
RewriteCond /www/common%{REQUEST_URI} -f
RewriteRule ^(.+) /common/icons/$1

This is such that if an icon isn't found on a specific server, there is
a fallback area of common icons.

Under 1.3b5 however, I get the following kind of entries in my rewrite
log

192.168.7.22 - - [24/Mar/1998:11:02:56 +0000]
[tyree.iii.co.uk/sid#159040][rid#1d6840/initial] (4) RewriteCond:
input='/www/' pattern='!-f' => matched
192.168.7.22 - - [24/Mar/1998:11:02:56 +0000]
[tyree.iii.co.uk/sid#159040][rid#1d6840/initial] (4) RewriteCond:
input='/www/common' pattern='-f' => not-matched

That is to say that the server variables are not being substituted.  Is
this a bug or don't rewrites like this work any more?

Cheers

Mike



Mime
View raw message