[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
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 {
set id [findstr [HTTP::path] "/open/" 6 end]
if { $id != "" } {
HTTP::respond 301 location http://www.xyz.com/MigrationID.aspx?migrationID=$id
}
}
}
[root@ve1023:Active] config curl -I http://172.28.19.79/open/42579900
HTTP/1.0 301 Moved Permanently
location: http://www.xyz.com/MigrationID.aspx?migrationID=42579900
Server: BigIP
Connection: Keep-Alive
Content-Length: 0