Helmi_Muzammil
Oct 22, 2020Nimbostratus
Rewrite URL and Virtual Server Selection
Hi All,
I have 2 web server url binding to 2 VS in F5,
- oa.f5.com = VS_OA
- office.f5.com = VS_Office
I want to achieve, if the user type http://oa.f5.com/nadine then it will go to http://office.f5.com/
I have created the irule in VS_OA as below, but no success ( the traffic still go to VS_OA with error 404 due to no nadine folder)
when HTTP_REQUEST_RELEASE {
if {[string tolower [HTTP::host]] starts_with "oa.f5.com" && [HTTP::uri] starts_with "/nadine" } {
HTTP::host "office.f5.com"
HTTP::uri [string map {"/nadine" "/"} [HTTP::uri]]
virtual VS_Office
}
}