Forum Discussion

Shivesh_Rege's avatar
Shivesh_Rege
Icon for Nimbostratus rankNimbostratus
Jun 02, 2009

irule causing loop.

Hi Friends,

 

 

I am facing an issue with an irule going into loop.Could someone help me resolving it.

 

 

when LB_FAILED {

 

if{[active_members [LB::server]]<1}

 

HTTP::redirect "http://[HTTP::host]/error/404.html"}

 

when HTTP_REQUEST {

 

if {([HTTP::path] ends_with "/doc")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/minisite")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/fslink")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/ms")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/link")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/null-request")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/exttracking.dyn")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {([HTTP::path] ends_with "/ms_1020109.html")} {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}

 

elseif {[string tolower [HTTP::host]] contains "join" } {

 

HTTP::redirect "http://[HTTP::host]/ecom/pages/nm/join.jsp"}

 

elseif {[string tolower [HTTP::host]] contains "MysteryBookOffer" } {

 

HTTP::redirect "http://[HTTP::host]/ecom/nm/link/home?YSID=1129&YTYP=net&YTID=BN4_02_k8_E66"}

 

elseif {[string tolower [HTTP::host]] contains "historybookclub" } {

 

HTTP::redirect "http://[HTTP::host]ecom/nm/link/home?YSID=1128&YTYP=net&YTID=BN3_02_h7_E65"}

 

elseif {[string tolower [HTTP::host]] starts_with "www" or "www1"} {

 

HTTP::c"http://[HTTP::host]/ecom/pages/nm/nmhomepage.jsp"}}

 

 

Thanks & Regards,

 

Shivesh

11 Replies