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:
if { [HTTP::uri] contains "string1234" } {
log local0. "Matched and redirecting to http://xxxxxx[HTTP::uri]"
HTTP::redirect http://xxxxxx[http::uri]
}
And this is what I see in the ltm log file:
local/tmm info tmm[5076]: Rule testrule : Matched and redirecting to http://xxxxxx//BC/string1234?all
Note the two '//' after hostname xxxxxxx.
Thanks.