Redirecting to URI without hoping

I have a URL https://example.com/api/agentGroup/zip/90210?type=State and I need to redirect it to
"https://example.com/conAgent/api/agentGroup/zip/90210?type=State"

But I need to redirect it without hoping. (code 301). I mean I don’t want the browser to get the new redirected URL.

What you need then is rewriting not redirecting. Also both URL’s you have provided are same or maybe something is wrong with my eyes …

Thanks for pointing the error. Edited the question. and also got the solution too. I used:

acl apiZip path_beg /api/agentGroup/zip
http-request set-path /conAgent/%[path] if apiZip

Please let me know if there is any other efficient method