Forum Discussion

nemmank's avatar
Icon for Nimbostratus rankNimbostratus
Jul 20, 2011

iRule http 302 redirect not working

Hi all,

Any help is much appreciated. I am trying to use an iRule to redirect traffics inbound on one virtual server to another URL, with status code of 302. My iRule doesn' seem to be working as http request to doesn't get redirected. Below is my iRule which has been applied to virtual server for domain :






if {( [HTTP::host] equals "")}{


HTTP::respond 302 Location ""









Please correct me if I am doing something wrong in the above.




Any help is much appreciated


1 Reply

  • Hi,



    That looks about right. What do you see in the browser when testing? Can you try testing from the LTM CLI using:



    curl -v -H "Host:"



    where is the virtual server IP?