Hi Guys ,
An update.
Was using Internet Explorer , which was a real problem...using Chrome showed up the loop and then with HTTPWatch on IE , showed a loop.
Now:
when HTTP_REQUEST {
set state [class match -value [whereis [IP::client_addr] state] equals uk_regions]
if {($state ne "")}{
switch $state {
Leeds { pool $region }
York {HTTP::redirect
http://62.190.1.1/ab/york}
grlond {HTTP::redirect
http://www.google.com/news}
default {pool DEV-HTTP-POOL}
}
}
}
The above works for
www.google.com/news , however for the York redirect to 62.190.1.1/ab/york , a redirect loop occurs. The iRule is on the virtual server runs on the same address of the website for redirection. So the problem now is that the redirection loops if going back to the same IP....
Anyone seen that one...
THanks
Neil