Forum Discussion
therob152
Nimbostratus
Nov 11, 2016Move [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 start...
crodriguez
Nov 11, 2016Ret. Employee
How about something like this to start with:
when HTTP_REQUEST {
set hlq [getfield [HTTP::host] ".f5.com" 1]
HTTP::path "/$hlq[HTTP::path]"
HTTP::host "f5.com"
}
You can wrap whatever conditional logic you need around it.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects