Forum Discussion
keefyweefy
Jul 08, 2011Nimbostratus
irule to redirect and amend URI
Hi
I'm trying to write a redirect irule but not having much joy.
The irule firstly needs to identify wireless clients then direct them to poolA
Then it needs...
Peter_72728
Jul 08, 2011Nimbostratus
I'm assuming you've tried just merging the two and it didn't work...but I'm not sure why it wouldn't. Have you done something like this?
when HTTP_REQUEST {
if { [matchclass [IP::remote_addr] equals $::Wireless] } {
pool PoolA
} elseif { [IP::addr [IP::client_addr]/16 equals 192.168.0.0] } {
if {[HTTP::uri] == "/"}{
HTTP::redirect "/newuri"
return
}
pool poolB
}
}
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