Forum Discussion
Nams_119859
Nimbostratus
Apr 11, 2013url check starts_with number to avoid looping
Hello, Below is my iRule that redirects an incoming url to a versioned url, by using the verison number in the header. In order to avoid infinite looping I am looking for a way to check "uri...
Nams_119859
Nimbostratus
Apr 12, 2013Thank you for the quick response. This is what I have now. But I get a connection reset when I try any url with "not". Without "not" it works but doesnt do what I need it to. Could it be that my F5 version (9.3.1) doesnt support "not"?
when HTTP_REQUEST {
if { not [HTTP::uri] starts_with "/[HTTP::header value Version]" and \
[HTTP::header exists Version] } {
HTTP::redirect "http://[HTTP::host]/[HTTP::header Version][HTTP::uri]"
}
}
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