Forum Discussion
mikegray_198028
Cirrus
Jan 04, 2017irule help
Hello Team,
I am using the following irule to route traffic directly to the node based uri
https://example.com/app/* > node 192.168.10.20 port 80
https://example.com/* > default pool.
...
PeteWhite
Employee
Jan 04, 2017Sorry, I should have mentioned that this is relevant in the HTTP_RESPONSE event, not the HTTP_REQUEST event. Add this to the bottom of the existing iRule and it should be fine.
when HTTP_RESPONSE {
if {[HTTP::is_redirect]} {
HTTP::header replace Location [string map -nocase "https://example.com/test https://example.com/app/test" [HTTP::header Location]]
}
}
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
