Forum Discussion
FAJUMO
Cirrus
Jan 30, 2025Loop in redirect
I tried to redirect www.abc.com to https://abc.com/niiverify using n Irule. I keep getting on the browser " Too many redirect"
Paulius
MVP
Feb 01, 2025FAJUMO Without seeing the iRule that you have configured or knowing if you have a pool associated to the virtual server, the following iRule might work but I would definitely provide your iRule configuration and virtual server configuration so we can make sure that this iRule I provided will work for you.
when CLIENT_ACCEPTED priority 500 {
set DEFAULT_POOL [LB::server pool]
}
when HTTP_REQUEST priority 500 {
set HOST [HTTP::host]
if { ${HOST} eq "www.abc.com"} {
HTTP::redirect "https://abc.com/niiverify"
} else {
pool ${DEFAULT_POOL}
}
}
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