Forum Discussion
hooleylist
Jun 19, 2006Cirrostratus
It looks like HTTP::uri only refers to the original client request. Perhaps one of the gurus can explain this.
I used the following to verify the rewrite though:
when HTTP_REQUEST {
set debug to 1 to enable logging to /var/log/ltm. Set to 0 to disable logging.
set debug 1
if { [HTTP::uri] contains "uri1" } {
HTTP::uri [string map { uri1 uri2 } [HTTP::uri]]
if {$debug}{
log local0. "Rewrote URI from: [HTTP::uri]"
log local0. 'Rewrote URI to: [string map { uri1 uri2 } [HTTP::uri]]"
}
}
}