Forum Discussion
nathe
May 15, 2012Cirrocumulus
farache
Check out Joe's blog who explains about redirection and URIs and should help you: https://devcentral.f5.com/weblogs/Joe/archive/2005/07/27/ModifyingUriWithoutRedirect.aspx
So you could use something like:
when HTTP_REQUEST {
if { ([HTTP::host] eq "site1.com") && ([HTTP::uri] eq "/communities" } {
HTTP::header replace "Host" "site2.com"
HTTP::uri "/someother_uri"
}
}
So, site1.com/communities would be rewritten as site2.com/someother_uri but the browser would not change. Obviously you may have to tweak this looking at your example above but this should get you on your way.
Does this help at all?
N