Hi Anish,
You could either check the Referer header on the
www.xyz.com.xx virtual server. Or you could append the original host and URI to the redirect as a query string parameter:
when HTTP_REQUEST {
Redirect all requests to a new URL with the host appended to the redirect
If there is no query string already append the url parameter to the path with a ?
if {[HTTP::query] eq ""}{
HTTP::redirect "http://www.xyz.com.xx[HTTP::uri]?url=[HTTP::host][URI::encode [HTTP::uri]]"
} else {
There was a query string already so append the url parameter to the existing query string with a &
HTTP::redirect "http://www.xyz.com.xx[HTTP::uri]&url=[HTTP::host][URI::encode [HTTP::uri]]"
}
}
Aaron