Forum Discussion
hooleylist
Feb 02, 2010Cirrostratus
Hi Maher,
Here is an example which redirects clients who access the VIP with a hostname other than www.example.com:
when HTTP_REQUEST {
Check if host header value is not www.example.com
if {not ([string tolower [HTTP::host]] eq "www.example.com")}{
Send a 301 redirect
HTTP::respond 301 Location "http://www.example.com/"
}
}
Aaron