Forum Discussion

StanK's avatar
StanK
Icon for Nimbostratus rankNimbostratus
Apr 12, 2013

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]"

 

}

 

}

 

2 Replies

  • Take a look at the response for this post:

     

     

    https://devcentral.f5.com/community/group/aft/2166563/asg/502276129

     

  • StanK's avatar
    StanK
    Icon for Nimbostratus rankNimbostratus
    Kevin, thanks a lot, this is precisely what we were looking for.