Need help with Cisco ACE header rewrite to irule
I need some help doing this conversion from Cisco Ace to iRule. There is a header request that convert the users URL request from "hostA.companyA.com/whatever/comes/after" replace "host1.companyA.com:64592/whatever/comes/after" and a header response that converts it back so the user will only see hostA.companyA.com/whatever/comes/after. We need to make the rewrite transparent to the user and the '/whatever/comes/after' will need to stay the same.
There is the ACE code..
action-list type modify http login header rewrite request Host header-value "hosta[.]companyA[.]com(.)" replace "host1.companyA.com:64592%1" header rewrite response Location header-value "https://host1.companyA.com:64592/(.)" replace "https://hosta.companyA.com/%1"
Thanks