OCC_68606
May 24, 2011Nimbostratus
iRule 301 Location
Hi Everybody,
I am looking for a way to the following:
I want to manage several sites and send it with a permanent redirect to general site, for example:
When I enter www.site1.com, www.site2.com, www.site3.com, etc. redirecto to www.generalsite.com
I made the following iRule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]]{
"www.site1.com" -
"www.site2.com" -
"www.site3.com" {
HTTP::respond 301 Location "http://www.generalsite.com[HTTP::uri]"
}
}
}
Any ideas???
George.