Gerald_Meese
May 22, 2018Cirrus
HTTP::redirect loop
Hello,
I'm trying to write a small iRule to create redirects to specific paths on an internal server based on the presence/absence of the 'order' parameter in the requested URI :
when HTTP_REQUEST {
if { [HTTP::uri] contains "order" } {
HTTP::redirect /Login.aspx?guestlogin=1&order=[URI::query [HTTP::uri] order]&context=3 }
else {
HTTP::redirect /Login.aspx?guestlogin=1 }
}
When I'm testing the iRule I'm running into a loop of "too many redirects" but I don't see what I need to do to correct that... Any help would be highly appreciated !
Thanks in advance 🙂
Gerald