Forum Discussion
Santhosh
Nimbostratus
Apr 06, 2020Redirect when the client address is not equal to the networks in datagroup
Trying to redirect to the site when the client address is not equal to the datagroup but it's not working. Any help appreciated. when HTTP_REQUEST { if { not [matchclass [IP::client_addr] equals XY...
Shaun_Simmons
Employee
Apr 06, 2020Try this
-Modify "original_pool" to the default Pool name for the VIP
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if {![ class match $host equals XYZ_group ] } {
HTTP::respond 301 Location "http://rextrum.com/xyz" }
else
{ pool original_pool }
}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