Forum Discussion
lunitic_56137
Jan 31, 2013Nimbostratus
This did not work. I have found out some more info now. This is currently working in a Juniper DX using their keyword of append. Here is the snippet:
request_header "Host" equals "ecommerce.company.com" and url contains "/companyb2c/b2c" then replace url term "/companyb2b/b2b" and append query_string "&login=true" and route_request target_host "192.168.1.101:80"
The DX is doing a lookup, changing the b2c to b2b and then appending &login=true to the end of the query string.
I have a pretty ugly iRule that is doing a switch for all of the uri changes that need to be made but the append part doesn't work. In the uri checks, it looks for b2c and redirect rewrites to b2b by using the standard HTTP::redirect and giving it the full path. But now there is a server component to this all. When you get redirected to the b2b link and select a product, the server adds the "&Product=76543". This number is dynamic so I dont know what it is and I cant figure out how to also append the "&login=true" to it as well.