Poonam_Dronamra
Dec 06, 2006Nimbostratus
Irule Redirect Issue
I am trying to redirect the host portion to another URL
http://2007pece.mpiweb.org redirected to
http://www.mpiweb.org/cms/mpiweb/pece2007/pecetemplate.aspx?id=7390
and http://20007cmme.mpiweb.org redirected to http://www.mpiweb.org/cms/mpiweb/cmme2007/cmmetemplate.aspx?id=7432
and the following iRule is applied but does not perform the redirection
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if {[HTTP::host] contains "2007pece"} {
HTTP::redirect "http://www.mpiweb.org/cms/mpiweb/pece2007/pecetemplate.aspx?id=7390"
} elseif {[HTTP::host] contains "2007cmme"} {
HTTP::redirect "http://www.mpiweb.org/cms/mpiweb/cmme2007/cmmetemplate.aspx?id=7432"
}
}
Please could someone let me know what is wrong with the syntax.
I would really appreciate it.
Thank you very very much.
-Poo