Forum Discussion
RonR10_181817
Nimbostratus
Jun 10, 2015iRule Redirection using Switch
Hello all - I am requesting your expertise to determine why this iRule doesn't work 100%. I am trying to redirect users to a page upon entering the site.
1) http://www.site1.com or http://site1.co...
cjunior
Nacreous
Jun 10, 2015Hi,
Yes, I agree with Michael. But I would change the syntax of the condition, I'm thinking that it is confused and maybe there is a syntax error.when HTTP_REQUEST {
if { [lsearch {"site1.com" "www.site1.com"} [HTTP::host]] != -1 }{
switch -glob [string tolower [HTTP::uri]] {
"/" -
"*myaccount*" {
HTTP::uri "/MaintenancePage.html"
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects