Forum Discussion
Shlairshe_84486
Nimbostratus
Apr 25, 2014url/uri to url/uri with potential header rewrite involved
Ok, I think I am really close but I am finally admitting I am confused.
My clients want to be able to type the url http://bearcub.dev.leo.world.com/lookout and be redirected to http://lion.dev.leo.w...
nathe
Cirrocumulus
Apr 25, 2014Shlairshe,
I think this rewrite should work. Can't lab it at the moment to test.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "bearcub.dev.leo.world.com" and [string tolower [HTTP::uri]] equals "/lookout" } {
HTTP::header replace Host "lion.dev.leo.world.com"
}
}
Hope this works, sure other DCers will correct me if wrong.
N
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