Forum Discussion
Bryan_Chick_152
Nimbostratus
Aug 16, 2006iRule to redirect based on uri content
Hi all,
I need a rule that redirects for a certain word within the uri--but only when that uri immediately follows the url.
In this example, "golf" is the word that should initiate...
hoolio
Cirrostratus
Aug 16, 2006Hi Bryan,
vw.com is the host and everything after that in the URL would be the URI.
You can get the current values using [HTTP::host] and [HTTP::uri].
It looks like you want to do something like:
if {[HTTP::uri] starts_with "/golf" }{
HTTP::redirect http://myredirect.site.com
}Aaron
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