e.g.
[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 class template_dg list
class template_dg {
{
"learn_about"
"receive_alerts"
"text"
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[class match -- [URI::query "?&[HTTP::query]" template] equals template_dg]}{
HTTP::redirect "https://www.abc.com/"
}
}
}
[root@ve1023:Active] config curl -I http://172.28.19.79/online/index.cfm?template=text
HTTP/1.0 302 Found
Location: https://www.abc.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://172.28.19.79/online/index.cfm?template=receive_alerts
HTTP/1.0 302 Found
Location: https://www.abc.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://172.28.19.79/online/index.cfm?template=learn_about
HTTP/1.0 302 Found
Location: https://www.abc.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1023:Active] config curl -I http://172.28.19.79/online/index.cfm?template=somethingelse
HTTP/1.1 404 Not Found
Date: Tue, 13 Mar 2012 15:21:38 GMT
Server: Apache/2.2.3 (CentOS)
Content-Type: text/html; charset=iso-8859-1