Forum Discussion
irules issue with https redirect
When trying to redirect from http to https by using irule _sys_https_redirect:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
got an error "The page isn't redirecting properly" ERR_TOO_MANY_REDIRECTS. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
2 Replies
- Richard__HarlanHistoric F5 Account
Check the location that the browser is being redirected too and make sure it is not causing a redirect loop. From what you are saying it not the iRule itself just the location it pointing too is putting it in a loop causing the browser to get redirected again and again to the same spot.
- Os_69448
Nimbostratus
Hi Vitaliy,
I had the similar issue, make sure that you apply this on HTTP virtual server. If you apply this on a HTTPS virtual server then you may get this kind of loop.
Os
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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