Redirect w/ "$" in the URL

I get the following error w/ irule:

TCL error: RULE_192.168.150.89 HTTP_REQUEST - cant read Logon: no such variable while executing HTTP::redirect PDHI ConXus - System Error

The iRule is

when HTTP_REQUEST {

if {[HTTP::host] contains “harringtonhealth.com”}

{pool harringtonhealth.com_8080

return

}

if {[HTTP::uri] contains “/print”}

{pool umr.com_print_7070

return

}

if {[HTTP::uri] contains “/websurvey”}

{pool umr.com_print_7070

return

}

if {[HTTP::uri] contains “member3”}

{HTTP::redirect “PDHI ConXus - System Error”

}

else {pool umr.com_8080}

}

How do I get the iRule to not treat $Logon$ as a variable?

Hi Jamie,

You should be able to escape the $'s with a backslash:

HTTP::redirect “PDHI ConXus - System Error”

Or for v10, you could try wrapping the redirect line in curly braces (this may lead to a parser error in older versions upon config reload):

HTTP::redirect {PDHI ConXus - System Error}

Aaron