Forum Moderators: phranque

Message Too Old, No Replies

how to use apache to log relative links as absolute

         

krups

8:57 pm on Sep 6, 2006 (gmt 0)

10+ Year Member



i'm using awstat to parse through apache logs. i've run into a case where i need an absolute path for a link rather then a relative path.

essentially, i've got a link that looks like

/externallink?url=http://webmasterworld.is.coolio

and i want apache to record the user selecting the above links as

[mydomain.com...]

ideas?

jdMorgan

5:32 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Apache mod_log_config. You can insert %{HTTP_HOST} ahead of the local URL-path to get the canonical URL.

I'm not sure if your stats package will recognize the new format, though.

JIm