Forum Discussion
Patrick_Olsen
Nov 11, 2011Nimbostratus
Tomcat
I'm new to iRules and have been doing some research here. I have tried multiple redirect scenarios and they all seem to fail.
Current try looks like this:
when HTTP_REQUEST {...
What am I missing?
if { [string tolower [HTTP::host]] eq "blah/manager/status"
this will never be true, as the host would be something like www.domain.com
Please try this:
when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "www.domain.com" and [string tolower [HTTP::uri]] eq "blah/manager/statusblah/manager/status" } { HTTP::redirect http://www.blah.com[HTTP::uri] } }
Regards
Kurt Knochner
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