Forum Discussion
Cindy_127211
Nimbostratus
Nov 10, 2006URI 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!
- hoolio
Cirrostratus
I think the HTTP::uri value is being updated correctly, but the value dispalyed is cached. Try running a tcpdump on the vlan your node is on, or check the web server logs, and verify the value is changed as expected. - Colin_Walker_12Historic F5 AccountAaron's right on this one.
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