Forum Discussion
Vijay_Krishnan_
Feb 04, 2010Nimbostratus
I am having a syntax error..could you guys please help wih the following irule..thanks
when HTTP_REQUEST {log local0. "The following is the URI: [HTTP::URI]
switch -glob [string tolower[HTTP::uri]] {
"*services/TelephonyGatewayCheckSystemAvailable/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyTopUpAccount/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyBuyCLPPass/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyGetPassCount/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyLookupInvoice/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyGetAccountBalance/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyValidateLPN/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
"*services/TelephonyGatewayNotifyPayInvoice/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
}
}