Forum Discussion
AaronStrephans_
Nimbostratus
Aug 17, 2018Redirected too many times.
Ok, I know this has already been answered her in a few different ways but after making changes and testing I am still having iussues I am getting the error xxxxxxxxx.com redirected you too many times...
youssef1
Cumulonimbus
Aug 17, 2018Hi Aaron,
The problem is due to your irule.
in fact you make a condition that says that if you have an uri equal to "/" you redirect the user to the same uri "/". so you get a loop...
you should have some things that looks like this:
when HTTP_REQUEST {
Checks the URI and forces to all lowercase
switch [string tolower [HTTP::host]] {
"zzzzz.zzzzz.com" {
if { [HTTP::path] eq "/"}{
newclient Redirecting
HTTP::redirect "https://zzzzz.zzzzz.com/NewURI";
return
}
}
"xxxxxxx.xxxxx.com" {
if { [HTTP::path] eq "/"}{
newclient Redirecting
HTTP::redirect "https://xxxxxxx.xxxxx.com/NewURI";
return
}
}
}
}
You will be redirect to the new URI in order to not trigged condition again ("/").
Hope it's clear for you. Keep me udpate
Regards,
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