Frank_Ziebarth_
Jun 16, 2006Nimbostratus
rewrite an URI with a request parameter
Hallo
we have two webservices in the development, so the the uri is change very often.
Our end-user should connect to these server to an easy URI
http://server/portal/
http://server/info/
This is my iRule:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/portal/"} {
HTTP::uri "/version02.webservices.portal/"
use pool SDS_Pool01
}
if {[HTTP::uri] starts_with "/info/"} {
HTTP::uri "/version04.webservices.info/"
use pool SDS_Pool02
}
}
It works for
http://server/portal/service.asmx
and
http://server/portal/test/service.asmx
but not for
http://server/portal/service.asmx?op=SignVerifyCompressEmail
In this case it looks like that the iRule cut the part
"?op=SignVerifyCompressEmail"
I can´t understand that, can somebody tell me where my mistake is?