Forum Discussion
Steve_Sutton_87
Nimbostratus
May 04, 2005why is log statement in else clause executing?
Hi,
I have the following rule:
if (http_uri == "/") {
log local0.info "test09si: redirected incomplete URI"
redirect to "https://%h/Test01_09"
...
May 05, 2005
Could it be that the contents of your website's html code references another uri on that is causing the else clause to catch? First thing I'd do is to log the http_uri value at the beginning of the rule and then look at the logs. I'd be surprised if you see the "if" log statement followed by the "else". Odds are that another uri is slipping in under the covers somewhere (that would explain why the main page is redirecting correctly). Take a look and let us know.
-Joe
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
