[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 {
set new_uri [class match -value -- [string tolower [HTTP::uri]] equals uri_map_dg]
if {$new_uri ne ""}{
HTTP::redirect http://[HTTP::host]$new_uri
}
}
}
[root@ve1023:Active] config b class uri_map_dg list
class uri_map_dg {
{
"/contactus" { "/public/contact-us" }
"/help" { "/public/help" }
}
}
[root@ve1023:Active] config curl -I http://172.28.19.79/contactus
HTTP/1.0 302 Found
Location: http://172.28.19.79/public/contact-us
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://172.28.19.79/contactUS
HTTP/1.0 302 Found
Location: http://172.28.19.79/public/contact-us
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://172.28.19.79/help
HTTP/1.0 302 Found
Location: http://172.28.19.79/public/help
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://172.28.19.79/Help
HTTP/1.0 302 Found
Location: http://172.28.19.79/public/help
Server: BigIP
Connection: Keep-Alive
Content-Length: 0