Forum Discussion
craff_17758
Sep 25, 2007Historic F5 Account
iRule stopped working with upgrade to 9.4.1
All,
I've been going over this iRule for a while, and I don't see what broke.
This iRule worked in version 9.2.3, but stopped doing its job in 9.4.1. The purpose of the rule is to translate f...
Deb_Allen_18
Oct 01, 2007Historic F5 Account
Logging "before" & "after" values is the recommended troubleshooting approach for failed replacement operations.
Give this a shot:
when HTTP_REQUEST {
log local0. "URI before: [HTTP::uri]"
if {[string tolower [HTTP::uri]] contains ".osp" }{
replace .ospx w/ .aspx & .osp w/ .asp
set uri [string map -nocase {.ospx .aspx .osp .asp} $uri]
log local0. "URI after: $uri"
re-write post replacement URI
HTTP::uri $uri
}
}
That should make it more obvious whether the string map is replacing as expected.
HTH
/deb
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects