Redirect non www and https issue
Hi, We have two Irules on a Virtual Server pool that seem to be causing an intermittent issue for some clients / browsers.
_sys_https_redirect (the default F5 one included on the BIGIP boxes) and our own custom one shown below.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "pennyforlondon.com" } { HTTP::respond 301 Location "https://www.pennyforlondon.com[HTTP::uri]" } }
We have our Irule first followed by the _sys_http Irule.
This however gives us the following error in the logs.
TCL error: /Common/_sys_https_redirect - Operation not supported. Multiple redirect/respond invocations not allowed
The issue we face is if we remove either of these it causes issues displaying the website so we need to use them both.
We support non www, www. and forward from http force it to use https for our SSL cert to work.
Any ideas on how these two Irule can co-exist and not cause weird intermittent redirection issues which only some clients get on occasion.
Thanks, Dylan.