Forum Discussion
Tiago_Carvalho_
Nimbostratus
Jul 04, 2018host and uri rewrite
Hello,
We are trying to achieve the folowing:
When client request for http://test.com/test/whatever, we need to rewrite and not redirect to http://7.7.7.7/whatever. And forward the request...
youssef1
Cumulonimbus
Jul 04, 2018Hi,
try this:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/source" && [HTTP::host] equals "test.mycomany.com" }{
HTTP::uri [string map {/source /destination} [HTTP::uri]]
HTTP::header replace Host "othername.mycompany.com"
pool poolname
}
}
Regards
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
