Forum Discussion
irshad
Nimbostratus
Mar 04, 2020Irule-URL redirection
Hi, Please help on writing irule for URL redirection. The ask is below Incoming traffic to f5 – https://test.yourdistributor.com/{anything/everythig} F5 needs to redirect to - https://test1...
Mayur_Sutare
MVP
Mar 04, 2020If not above, try below iRule. This will redirect to the given domain without making any changes in uri part.
when HTTP_REQUEST {
if { [HTTP::host] equals "test.yourdistributor.com"} {
HTTP::redirect "https://test1apigw01p.test.com:9022[HTTP::uri]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
