Forum Discussion
jgoetsch_236444
Nimbostratus
Dec 10, 2015Getting Too Many Redirects error: What is wrong with this iRule?
Hi All,
I wrote an iRule that is correctly redirecting a URL that was sent out by our marketing team that was not correct. The page URL is also case sensitive, and emails were sent out with variou...
jgoetsch_236444
Nimbostratus
Dec 11, 2015I get the error "too many redirects" with the below rule:
when HTTP_REQUEST {
set low_uri [string tolower [HTTP::uri]]
if { $low_uri starts_with "/starter-kit" } then {
Do nothing
} elseif { $low_uri contains "/starter-kit" } then {
HTTP::redirect https://www.bittitan.com/starter-kit
}
}
- Kai_WilkeDec 11, 2015
MVP
The iRule looks okay and I'm somewhat sure that the iRule "as is" does't cause a redirect loop to ocour. So you may verify that the server is not sending additional redirects that somehow interfere with the iRule logic?
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