www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Adams <cad...@ro.com>
Subject Re: general/2556: RewriteRule generates redirect (code 301) but code 200 is logged
Date Tue, 07 Jul 1998 17:10:00 GMT
The following reply was made to PR general/2556; it has been noted by GNATS.

From: Chris Adams <cadams@ro.com>
To: lars@apache.org
Cc: apache-bugdb@apache.org, cadams@ro.com, lars@hyperreal.org,
        apbugs@apache.org
Subject: Re: general/2556: RewriteRule generates redirect (code 301) but code 200 is logged
Date: Tue, 7 Jul 1998 10:52:35 -0500 (CDT)

 Once upon a time, lars@apache.org wrote
 > Synopsis: RewriteRule generates redirect (code 301) but code 200 is logged
 > 
 > State-Changed-From-To: open-closed
 > State-Changed-By: lars
 > State-Changed-When: Mon Jul  6 16:09:56 PDT 1998
 > State-Changed-Why:
 > 
 > Are you using a LogFormat/CustomLog directive?
 > If yes you are probably using "%s" to reference the
 > status code, but this means that always the status of
 > the initial request (e.g. 200) is logged and not the
 > redirect status. To get the 'latest' status you have to
 > use "%>s" instead.
 > 
 > See http://docs.apache.org/mod/mod_log_config.html#formats
 > for details.
 > 
 > Class-Changed-From-To: sw-bug-mistaken
 > Class-Changed-By: lars
 > Class-Changed-When: Mon Jul  6 16:09:56 PDT 1998
 
 Okay, you hit the nail on the head.  I read (several times even!) the
 docs for mod_rewrite and couldn't find any clues.  Maybe a comment in
 mod_rewrite about this would be good?
 
 Thanks!
 -- 
 Chris Adams - cadams@ro.com
 System Administrator - Renaissance Internet Services
 I don't speak for anybody but myself - that's enough trouble.

Mime
View raw message