Forum Discussion
George_Watkins_
Feb 08, 2011Historic F5 Account
Hi DM,
You should be able to just append [HTTP::path] to the redirect URL. Maybe something like this:
when HTTP_REQUEST {
if { [HTTP::host] equals "mysite.com" } {
HTTP::redirect "http://www.mysite.com[HTTP::path]"
} else {
pool WEB_HTTP_POOL1
}
}
You can get much more elaborate, but that should solve the issue at hand.
-George