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
here is the irule
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 ";
return
} } “xxxxxxx.xxxxx.com” {
if { [HTTP::path] eq “/”}{
newclient Redirecting
HTTP::redirect ";
return
} } } No match.
}
Hi 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,
Hi
But you confirm that you modify my irule. You need to set the uri of the redirection…
What is the goal of your irule ? Redirection on a specific path depending the hostname that’s right ?
Regards