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...
Kai_Wilke
MVP
Dec 11, 2015So you want to have an additional redirect happen from /AzUrE-stARter-kit to /azure-starter-kit and not a rewrite... 😉
when HTTP_REQUEST {
set low_uri [string tolower [HTTP::uri]]
if { [HTTP::uri] equals "/azure-starter-kit" } then {
Do nothing
} elseif { ( $low_uri equals "/azure-starter-kit" ) or
( $low_uri contains "solutions/azure-starter-kit" ) } then {
HTTP::redirect "https://www.bittitan.com/azure-starter-kit"
}
}
Cheers, Kai
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