Cindy_127211
Nov 10, 2006Nimbostratus
URI change with
I am using the following iRule, which I put together based on other postings I saw in this forum. However, it is not working as expected. What am I doing wrong?
when HTTP_REQUEST {
log local0. "URL: [HTTP::uri]"
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/pls/portal/url/page" } {
HTTP::uri [string map -nocase {"/pls/portal/url/page" "/portal/page/portal"} $uri]
log local0. "Changed URL: [HTTP::uri]"
pool connectsbox1webcache
}
else {
pool connectsbox1webcache
}
}
The logging that I'm seeing when the rule finds the '/pls/portal/url/page' is:
Nov 10 08:45:44 tmm tmm[640]: Rule newConnect : URL: /pls/portal/url/page/home_page/home
Nov 10 08:45:44 tmm tmm[640]: Rule newConnect : Changed URL: /pls/portal/url/page/home_page/home
So, it looks like the rule is identifying what needs to be changed, but it isn't changing. Any help that can be provided would be 'greatly' appreciated.
Thanks!