Redirect iRule
Hi all,
I am trying to set an iRule to redirect HTTP request to a different URL. Basically for testing purpose, I created a WideIP which resolves to a WebServer which displays a Blue Page. I added a CNAME in DNS calling it Test Blue so what I want is to redirect anything that has testblue in the URL to redirect to an internal webpage called
This is the iRule I am using but I am getting errors
when HTTP_REQUEST { if { (([HTTP::host] contains "testblue")) } { HTTP::redirect "; } }
The error is
01070151:3: Rule [/Common/testblue_irule] error: /Common/testblue_irule:1: error: [unknown event (HTTP_REQUEST)][when HTTP_REQUEST { if { (([HTTP::host] contains "testblue")) } { HTTP::redirect "; } }]
Can someone point where I am going wrong with this.
Many Thanks