Forum Discussion
Dominicus_Hinda
Nimbostratus
Aug 11, 2006HTTPS Redirect -> hang
Hi,
I have tried to use iRule to meet the following requirement:
https://abc.com/aaa/xxxx redirect to https://abc.com/aaa/abc/receive:1111
https://abc.com/bbb/xxxx redirect to http...
unRuleY_95363
Aug 11, 2006Historic F5 Account
I can't believe no one else sees the problem. Since the place you are redirecting also contains "aaa", you are in an indefinite redirect loop (thus the "hang").
Based on what you've provided, I would suggest changing your redirect criteria (the if expression) to better identify when you want to redirect. Thus something like this:
if { ([HTTP::uri] starts_with "/aaa/") and not ([HTTP::uri] starts_with "/aaa/abc/") } {
HTTP::redirect https://[HTTP::host]:1111/aaa/abc/receive
} elseif ... same as above for /bbb ...Also note, that the location of the port :1111 should be after the host, not at the end of the uri (unless you actually want it as part of the uri).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