Forum Discussion
hooleylist
Dec 28, 2009Cirrostratus
You haven't actually set the URI to the new value though. If you just want to log the update, you could use this:
when RULE_INIT {
set ::DEBUG 1
}
when HTTP_REQUEST {
if { $::DEBUG }{
log local0. "Original URI: [HTTP::uri]
}
HTTP::uri [string trimright [HTTP::uri] .html]
}
when HTTP_REQUEST priority 501 {
This event runs after the prior HTTP_REQUEST event at the default priority of 500
Remove or comment out this event once done testing
if { $::DEBUG }{
log local0. "Updated URI: [HTTP::uri]
}
}
Aaron