Hi all,
The part of the irule that is not run correctly is:
elseif { (not ([HTTP::host] equals $newhost))
}
{
HTTP::header replace Host $newhost/$suri
if {$host_debug}{log local0. "[HTTP::host]: Second case: Replaced Host header with $newhost/$suri."}
}
Answering to nitas,
We want to be transparent to the users, in this case we must to use replace instead of redirect.
Anyway thank so much for all, with your examples i've had enough to fix the behaviour of my irule.
Would you be so kind to say me what i was doing wrong?, in order to understand the issue.
Thanks in advance and kind regards.