Forum Discussion
Gurdip_Sira_172
Nimbostratus
Sep 04, 2016Redirect some users if they hit a certain uri
Hi,
I need to redirect certain users (client IP's) when they land to a certain page behind my virtual page.
Basically the below and also checking if the uri equals a page:
when HTTP_REQUEST {
...
Vijay_E
Cirrus
Sep 05, 2016You would have to explain what went wrong with your efforts to better assist you. I think this iRule should work:
when HTTP_REQUEST {
if { ([class match [IP::client_addr] eq my_ip_dg]) and ([HTTP::uri] eq "/abcd") } {
HTTP::redirect "http://10.200.200.200/"
}
}
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