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...
Kevin_Stewart
Employee
Apr 26, 2014The HTTP::redirect command sends a 302 responses to the client that will surely change the URL in the browser. If you want this to be hidden then you would, at a minimum, just change the Host header:
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"
}
}
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