StanK
Apr 12, 2013Nimbostratus
redirect based on header version
We are looking for a way to redirect to url based on header named Version. The below irule logicaly should work but we get The connection was reset in browser when we try anything with "not". Any help is greatly appreciated.
when HTTP_REQUEST {
if { not [HTTP::uri] starts_with "/[HTTP::header value Version]" and \
[HTTP::header exists Version] } {
HTTP::redirect " Version][HTTP::uri]"
}
}