This is a discussion on rewrite *before* log? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Is it possible to run a RewriteRule *before* the request is logged? For example, if a request for http://example....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is it possible to run a RewriteRule *before* the request is logged? For
example, if a request for http://example.com/ comes in, I want to redirect to http://www.example.com/, and _not_ log the first hit. |
|
|||
|
end-user wrote:
> Is it possible to run a RewriteRule *before* the request is logged? For > example, if a request for http://example.com/ comes in, I want to > redirect to http://www.example.com/, and _not_ log the first hit. Still looking for an answer to this... |
|
|||
|
end-user <nooneherereally@hotmail.com> writes:
> > Is it possible to run a RewriteRule *before* the request is logged? > > For example, if a request for http://example.com/ comes in, I want > > to redirect to http://www.example.com/, and _not_ log the first hit. > > Still looking for an answer to this... There are ways you can suppress the logging. E.g. have the redirect set an env variable, and use a CustomLog directive to log only if the variable is not set. |