Forum Discussion
ssievers_87378
Apr 29, 2016Nimbostratus
First, I think you have to configure the virtual Server on Port 80 - no magic here. Second, you can create a datagroup like this:
class header_mapping {
headervalue1 /test
headervalue2 /dev/test2
...
}
Third, You can create an iRule like this:
WHEN_HTTP_REQUEST {
set location [findclass [HTTP::header "header_1"] header_mapping " "]
if { ($location ne "") } {
HTTP::respond 301 Location "http://www.domain.de$location"
return
}
}
See also https://devcentral.f5.com/wiki/iRules.findclass.ashx
- ssievers_87378Apr 29, 2016NimbostratusSorry - I did not read your final Note* In your case you should try to manipulate the HTTP Response directly in HTTP_RESPONSE event.
- JVV_137012Apr 30, 2016NimbostratusThanks ssievers. I appreciate your help.