Forum Discussion
Michael_Yates
Oct 28, 2011Nimbostratus
You can detect the target domain with [HTTP::host] and the perform a redirect.
This is a 302 - Temporary Redirect. If you want a 301 - Permanent then you will need to change it to HTTP::respond 301 Locaton "https://www.website.com"
when HTTP_REQUEST {
if { [HTTP::host] eq "site1.com" } {
HTTP::redirect "https://mysite.com"
}
}