Catching variants of domain - only catching first
If "presentations" is not found, it redirects to the default.
I've added another variant by means of using the following in my iRule, however it only seems to want to catch domainG.com, and not domainH.com when "presentations" is found. The iRule is redirecting to the default just fine, but it is not catching "domainH.com/presentations" Can anyone tell me what I may be missing?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"*domainG.com" - "*domainH.com" {
switch -glob [string tolower [HTTP::uri]] {
"/presentations*" {
HTTP::redirect "http://subdomain.domain.com/events/some-url-2010/some-page.aspx"
}
default {
HTTP::redirect "http://subdomain.domain.com/url2/some-other-page/home.aspx"
}
}
}
}
}