Forum Discussion
Faruk_AYDIN
Oct 07, 2017Nimbostratus
Hi Guy,
If you want only to HTTP redirect, create a Virtual server, define all DNS records of your sites as this virtual server IP, after that create a data group like the following and add the following iRule to your VS.urllist data group
"sitea.com" := "google.com",
"siteb.com" := "msn.com",
"sitec.com" := "yahoo.com",
when HTTP_REQUEST {
if {[set redir_url [class match -value -- [string tolower [HTTP::host][HTTP::uri]] equals urllist]] ne "" }{
HTTP::redirect $redir_url
}
}