therob152
Nov 11, 2016Nimbostratus
Move [HTTP::host] field to path
Hi,
I am trying to do the following:
Inbound to F5 - https://customer.f5.com/ Re-write to - https://f5.com/customer
Where "customer" could be any potential customer.
I have started the rule like this:
when HTTP_REQUEST { set customer [getfield [HTTP::host] "." 1] if { [HTTP::host] contains $customer } { }
Then became a bit stuck. As I essentially need to remove the field, and then add it as a path.
I'm guessing as well that there might be more to the path than just that, more paths etc, so might essentially need to wildcard the end.
Many thanks for any help.