We use One Irule (IP) to Redirect multiple web sites, possibly not behind the F5. This works well but there is no Referer. The site owners want to know how many people are going to AdvertisedSite.com to get to MainSite.com/Advertised.
when HTTP_REQUEST {
if { [HTTP::host] contains “mainsite.com” } {
HTTP::redirect “http://www.redirectedsite.com/health/signup.aspx?30587”
Also Tried - totaly fails.
} elseif { [HTTP::host] contains “JoeHost.com” } {
HTTP::header replace referer “JoeHost.com”
HTTP::header replace Host “www.redirectsite2.com”
HTTP::uri “/ph/west/network.shtml”
} else {
HTTP::respond 404 content “404 Not FoundThe requested URL was not found on this server.”