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...
Faruk_AYDIN
Altostratus
Sep 15, 2017Let's say your private network 10.0.0.0/8
when HTTP_REQUEST {
if {![IP::addr [IP::client_addr]/8 equals 10.0.0.0]}
{
if { ([HTTP::host] equals "testing.dff.com") && ([HTTP::uri] equals "tnr" || [HTTP::uri] equals "enr" }
{
log local0. "client IP: [IP::client_addr] - redirected to maintenance Page"
HTTP::redirect "http://testing.dff.com/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
