Forum Discussion

f5jr_113308's avatar
f5jr_113308
Icon for Nimbostratus rankNimbostratus
Jun 22, 2011

Help iRule Redirection to the same VIP

Hi All,

 

 

I have an URL abc.xxx.com that i wanted to redirect to abc.xxx.com/site/ when the user type the URL. I tried with the following URL. it just adds /infosell// many times and doesn't work.

 

when HTTP_REQUEST {

 

if { [HTTP::host] equals "www.joe.com"} {

 

HTTP::redirect "https://[HTTP::host][HTTP::uri]/infosell/"

 

}

 

}

 

 

 

 

With the simple redirect rule below, i get redirect loop in the browser. I am a newbie to iRules

 

 

 

when HTTP_REQUEST {

 

HTTP::redirect "https://[HTTP::host]/infosell/"

 

}

 

 

 

 

Can anyone help?

 

 

 

Thank you for help

 

No RepliesBe the first to reply