Forum Discussion
sonu_kumar4
Altostratus
Jul 05, 2016Specific URL redirection and other redirection should be unavailable
Hello Guys,
Your urgent suggestion required on below case which I got recently to implement in production and as long as I know it could be done through i-rules but its’ TCL script and in which I don...
IainThomson85_1
Cumulonimbus
Jul 05, 2016I'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, 2016
Altostratus
Hi 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, 2016
Cumulonimbus
Odaah has posted an iRule below that iincludes the host element. :)
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