Forum Discussion
sumeemonga_1547
Jun 30, 2016Nimbostratus
hi , this is something is my approach but not sure whether it will work or not , all suggestions invited
when HTTP_REQUEST {
if {[HTTP::host] contains "samplesite.test.com"} {
if {[HTTP::uri] ends_with "/DEV"} {
HTTP::uri [string trimright [HTTP::uri] /DEV]
HTTP::redirect "http://othersamplesite.test.com:9080[HTTP::uri]"
}
if {[HTTP::uri] ends_with "/TST"} {
HTTP::uri [string trimright [HTTP::uri] /TST]
HTTP::redirect "http://othersamplesite.test.com:9080[HTTP::uri]"
} else {
pool default
}
}
}