Forum Discussion
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"
}
}
}
}
}
- Joe_Pipitone
Nimbostratus
Please disregard this post, the iRule works perfectly, I just didn't have the other domain pointed to the correct VIP ;-)
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com