Newbie to F5 working on my first irule and already stuck. I have an irule similar to below which works. But now need to modify it with part of the URI “123456” being variable and redirected to the corresponding value. Any suggestions would be greatly appreciated!
when HTTP_REQUEST {
if { ([HTTP::host] contains “website1”) and ([string tolower [HTTP::uri]] starts_with “/test1/download/?uri=123456&t=record&lang=ln_english&mbd=false”) } {
However 123456 above is a variable number and would need to be redirected to the corresponding URL with the same number. So that if the above example changes to: