Forum Discussion
Irule to capture only part of the url and perform a redirect
The log statement I had added already, I just didn't post it.
Thanks for second reply that seem to work better and gives me a good starting point, below is the amended irule as it had some syntax error incase its useful for others:
when HTTP_REQUEST { set level3 [getfield [HTTP::uri] "/" 4] set newlevel "newlevel/$level3" if {( [string tolower [HTTP::uri]] starts_with "/level1" ) &&!([string tolower [HTTP::uri]] contains "$newlevel")} { HTTP::respond 302 Location [string map -nocase "$level3 $newlevel" [HTTP::uri]]
} }
Thanks again
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com