Forum Discussion
wctwf_78814
Nimbostratus
Feb 09, 2009Validation of iRule HTTPS::REDIRECT
Totally blank on the scripting side of things so here is the scenario for which iRule needs to be written. Looking for some insight here as to what's the logic to apply here.
Situation ...
The_Bhattman
Nimbostratus
Feb 09, 2009I suppose you can write it like the following
when HTTP_REQUEST {
if {([HTTP::host] eq "www.ensynch.com") && ([HTTP::uri] ends_with "/") } {
HTTP::redirect "[HTTP::host]/test"
}
}
This specifically looks for "www.ensynch.com" and also checks if you have an URI, but assumes not to redirect if it the URI already contains /test. Since I you haven't stated exactly what the conditions of the redirect this is a simple point to start with.
Hope this helps
CB
CB
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
