Forum Discussion
Bhajan_Gupta_28
Nimbostratus
Sep 15, 2017Required help for iRule for source based redirection
Hi guys,
Can any one help me to write an IRule for below requirement as i am using Big-IP 12.1.2 version..
having URL for example http://testing.dff.com and further have two sub folder suc...
Stanislas_Piro2
Cumulonimbus
Sep 15, 2017try this code:
when HTTP_REQUEST {
if { ([HTTP::host] equals "testing.dff.com") && ([HTTP::uri] starts_with "/tnr" || [HTTP::uri] starts_with "/enr" } {
if { ![class match [IP::client_addr] equals Internal]}
log local0. "client IP: [IP::client_addr] - redirected to maintenance Page"
HTTP::redirect "/maintenancePage.html"
}
}
}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
