Forum Discussion
winnajeem_25540
Nimbostratus
Mar 23, 2016redirect loop
Hi All.
Request help to resolve redirect loop.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "abc.com"}
{
if { not ([HTTP::uri] contains "/abc/en")
or not ...
Andy_Cohen_4986
Nimbostratus
Mar 23, 2016Your problem is the HTTP::redirect "http://[HTTP::host]" statement.
If you don't match the terms stated (contains /abc/en or equals / ) then you are telling the iRule to redirect to http://abc.com
The redirected request hits the iRule, and then hits the redirect statement again.
Why have you got the redirect in there? What are you trying to achieve?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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