Forum Discussion
s3s1277_111291
Apr 02, 2012Nimbostratus
question on iRule
I've created a simple iRule to match a string in URI, and redirect to different URL. But it is appending extra '/' after the hostname in the URL. Any idea why?
Here is the rule:
...
Thank you. I was declaring a variable at the top, for the host (without a /). It somehow appends extra /. Without declaring a variable, if I add the host explicitly in the redirect rule, it is not appending the extra /. Like this..
when HTTP_REQUEST {
set vip2 "hostname"
if { [HTTP::uri] contains "string1234" } {
HTTP::redirect http://$vip2[HTTP::uri]
}
}
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