Forum Discussion
Jun 22, 2020
Hello Mohamed.
You can try something like this:
when HTTP_REQUEST {
if { [HTTP::host] equals"subdomain.domain1.com"} {
HTTP::header replace Host "domain2.com"
HTTP::uri /uri[HTTP::uri]
}
}
This example modifies Host header and also concats "/uri" string to the whole URI sentence.
Regards,
Dario.