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, 2020Hello Irshad,
Please try below iRule -
when HTTP_REQUEST {
if { [HTTP::host] equals "test.yourdistributor.com" and [HTTP::uri] equals "/" } {
HTTP::redirect " https://test1apigw01p.test.com:9022/"
}
}
Hope it works for your!
Mayur
irshad
Nimbostratus
Mar 04, 2020Thanks Mayur, Let me test this.
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
