Tom_Thunem_9204
Jul 24, 2013Nimbostratus
large number of redirects
our application group has 142 redirects they want added to into an iRule. i was wondering what the most effiecient method might be. i am currently using this syntax for many of our redirects and hestiate to build a piece of logic that contains 142 different redirects... is this still the best option?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/something*" {
HTTP::redirect "http://our-domain.com/some/URI/values"}
"/something-else*" {
HTTP::redirect http://our-domain.com/some/other/URI/values }
"/and-so-on*" {
HTTP::redirect ""}
and so on...