Forum Discussion
Vijay_E
Dec 16, 2016Cirrus
You can do a redirect:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.marketing-url.com") and ( [HTTP::uri] eq "/" ) } {
HTTP::respond 301 Location "http://www.not-so-friendly-domain.com/path-to-website/"
}
}
If you just want to replace the host and uri values and pass it to the server in pool:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.marketing-url.com") and ( [HTTP::uri] eq "/" ) } {
HTTP::host "www.not-so-friendly-domain.com"
HTTP::uri "/path-to-website/"
}
}