You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/03/26 17:02:41 UTC

Re: mod_rewrite and logging modified URLs

On Tue, 26 Mar 2002, Brandon McMurray wrote:
> I am using mod_rewrite to do URL translation.  I would like to log
> (to access_log) the translated URL instead of the original incoming URL.
> Is this possible, and if so, how would I go about doing it?

Use mod_rewrite to put the translated URL in an environment variable (The
[E=variable:value] option to RewriteRule), then log the environment
variable.

The default log format simply logs the request line from the client, so
there is no easy way to change that.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org