Forum Discussion
IainThomson85_1
Jul 05, 2016Cumulonimbus
I'll give this is a go
when HTTP_Request { if { HTTP::URI equals "/def/geh/100" } { pool ithinkyouwantapool } else { HTTP::redirect "http://soundslikeyoushouldntbehere.com" } }
- sonu_kumar4Jul 05, 2016AltostratusHi Lain, Thanks for reply :) As I checked you have mentioned that when HTTP_Request { if { HTTP::URI equals "/def/geh/100" } mean (as long as I understand) if in the http request URI equal to this path then move to this backedn server rest all set to the given URL right but in my case user is just typing the simple url www.abcd.com in his/her browser that's it and further redirection /def/geh/100 should be done on F5 then backend server also any other URL should not be allowed with same URL. Please correct me if I'm wrong.
- IainThomson85_1Jul 06, 2016CumulonimbusOdaah has posted an iRule below that iincludes the host element. :)