Forum Discussion
naladar_65658
Aug 18, 2010Altostratus
I would say if you have less than a hundred of these then putting them into a switch statement would be a really efficient way for the F5 BIG-IP to process it. I have about 80 of these in one switch statement on a high volume VIP and it costs almost nothing computation wise on our 6400 series hardware.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri] ] {
"/cda/lots-of-stuff-here*" {
HTTP::respond 301 Location "http://www.website.com/lists/mental.../index.php"
}
"/cda/verify-specific-url*" {
HTTP::respond 301 Location ""
}
}
}