Forum Discussion
change the URL iRule
Hi
I have service working with below URL http://domainname.com/pubportal/InsuranceDetailsUploadWS/services/InsuranceUploadImpl
i changed the domain name and i need irule to redirect http://domainname.com/pubportal/InsuranceDetailsUploadWS/services/InsuranceUploadImpl to http://anotherdomainname.com/pubportal/InsuranceDetailsUploadWS/services/InsuranceUploadImpl
1 Reply
- nitass
Employee
if you want to rewrite host header when sending to pool member, you can use HTTP::host (in 11.5+) or HTTP::header replace command.
HTTP::host
https://devcentral.f5.com/wiki/iRules.HTTP__host.ashxHTTP::header
https://devcentral.f5.com/wiki/irules.HTTP__header.ashxif you want to send http redirection to client, you can use HTTP::redirect or HTTP::respond command.
HTTP::redirect
https://devcentral.f5.com/wiki/iRules.HTTP__redirect.ashxHTTP::respond
https://devcentral.f5.com/wiki/iRules.HTTP__respond.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com