2funky_105078
Aug 09, 2013Cirrus
Recursive HTTP redirection, why?
Hello,
I tried the following irule which had this idea
if i go to http://www.example.com/, then it should redirect to
http://www.example.com/_bla1bla2bla3?/
when HTTP_REQUEST {
if { [active_members my_pool] > 0 } {
if { not ([HTTP::uri] starts_with "/_bla1bla2bla3?")} {
HTTP::redirect http://thenest-eur-de.example.com/_bla1bla2bla3?[HTTP::uri]
return
}
} else {
HTTP::redirect http://whatever.com
return
}
}
- If I dont use the condition "if { not ([HTTP::uri] starts_with "/_bla1bla2bla3?")}" then i will get recursive HTTP 302 redirections on my browser, strange.....is it normal?? i thoguht that if i use return, then it doesnt come back to the iRule..
- do i need to bring all chars to lower case?
thanks for checking it, i am not a super-hero on irules (yet)!
Giulio