Forum Discussion
nitass
Feb 13, 2012Employee
this is mine. it is 10.2.3.
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/olduri1"} {
HTTP::respond 301 Location "https://newhost/newuri1"
}
if {[HTTP::uri] starts_with "/olduri2"} {
HTTP::respond 301 Location " https://newhost/newuri2"
}
}
}
[root@ve1023:Active] config curl -Ik https://oldhost/olduri1
HTTP/1.0 301 Moved Permanently
Location: https://newhost/newuri1
Server: BigIP
Connection: Keep-Alive
Content-Length: 0