Joe_Pipitone
Jan 12, 2010Nimbostratus
Catch a specific URL and redirect it
I have an existing iRule which uses a switch statement to catch a request no matter the case (string tolower) and redirect.
For some reason, the iRule is not catching and redirecting - I simply want to do this:
http://oursite.com/EventOverview.aspx?Event=some2010
Should redirect to:
http://ourothersite.com/events/event-name.aspx
Can anyone tell me why this below wouldn't work?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/EventOverview.aspx?Event=some2010" {
HTTP::redirect "http://ourothersite.com/events/event-name.aspx"
}
}
}