can you post the question again? some text is missing because of devcentral's parser.
by the way, acme.com is not part of HTTP::uri. it is part of HTTP::host.
5-Minute iRules: What’s a URL?
http://devcentral.f5.com/weblogs/jason/archive/2010/09/29/5-minute-irules-whatrsquos-a-url.aspx
anyway, this is what i guess you are asking.
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[scan [HTTP::host] {%[^.].acme.com} first] == 1}{
HTTP::redirect "]"
}
}
}
[root@ve1023:Active] config curl -I
http://test.acme.com/whatever
HTTP/1.0 302 Found
Location:
Server: BigIP
Connection: Keep-Alive
Content-Length: 0