Forum Discussion
REDIRECT http request depending on occurrence of string in URL and/or URI
Hello All. An urgent request came to my desk to redirect http requests depending on the occurrence of a certain string in the URL and/or URI. Still being a newbee with iRules a can't produce that "yesterday". Any quick answers? TIA, Huub.
4 Replies
- Huub_Dewachter1
Nimbostratus
Has been solved! Thanks nevertheless. Huub.
- Techgeeeg
Nimbostratus
Can you share your experience with the iRule...
- Huub_Dewachter1
Nimbostratus
Of course. It turned out to be very, very easy, even for a newbee. It only took some time. And that's what we don't have enough of, these days ...
elseif { [HTTP::uri] contains "/pdfgen/pdfgen.aspx?ID=" } { HTTP::redirect "http://xxxxxxxxx:9099" TCP::close log local0. "uri contains /pdfgen/pdfgen.aspx?ID=" )
Best regards, Huub.
- Huub_Dewachter1
Nimbostratus
Sorry, last ) should read } ...
Huub.
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