e.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.65.152:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[HTTP::host] equals "www.abc.com"} {
HTTP::redirect "http://www.xyz.com[HTTP::uri]"
}
}
}
[root@ve1023:Active] config curl -IL http://www.abc.com/1234
HTTP/1.0 302 Found
Location: http://www.xyz.com/1234
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
HTTP/1.1 404 Not Found
Date: Fri, 11 Nov 2011 00:05:15 GMT
Server: Apache/2.2.3 (CentOS)
Connection: close
Content-Type: text/html; charset=iso-8859-1