Hi Drew
You should be able to see the origin of the requests in your web server logs, if not there are ways of logging it, but it'd make your LTM log a bit messy, so I'd recommend using scripts (ie python or powershell) for your old logs (there would be no new ones if you redirect with the F5).
Try this rule:
when HTTP_REQUEST {
set path [string tolower [HTTP::path]]
if { $path starts_with "/item" } {
HTTP::respond 301 Location https://[HTTP::host]/the-new-uri/
}
}
This would trigger for /items too so if you want to be more specific you can chose "/item/" as condition.
If you want a logging function you can try this:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/item" } {
if { $uri contains "&" } { log local0. [IP::client_addr] }
HTTP::respond 301 Location https://[HTTP::host]/the-new-uri/
}
}
Right now it only logs the IP of the client, but you can change it to your liking.
/Patrik