Forum Discussion
Vijay_E
Jul 05, 2016Cirrus
Try the following with iFile:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.abcd.com") and ([HTTP::uri] eq "/")} {
HTTP::uri [HTTP::uri]/def/geh/100
pool POOL_WEB_SERVERS
} else {
HTTP::respond 200 content [ifile get "maint_index_html"] Cache-Control No-Cache Pragma No-Cache
}
}
A simpler version:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.abcd.com") and ([HTTP::uri] eq "/")} {
HTTP::uri [HTTP::uri]/def/geh/100
pool POOL_WEB_SERVERS
log local0. "New URI - [HTTP::uri] - [LB::server pool]"
} else {
HTTP::respond 301 Location "http://redirectpage.com" Cache-Control No-Cache Pragma No-Cache
}
}