Forum Discussion

Stephen_Price_1's avatar
Stephen_Price_1
Icon for Nimbostratus rankNimbostratus
Jun 16, 2017

URI Rewrite always ends with redirect

Have to manage traffic from 4 different URI and direct to a single URI to the pool while never allowing the user to see any change in the browser.

 

Ex-

 

Send to pool as

 

So far every example ends with a redirect at best. Attempted a local policy but unable to get format and graphics. Any direction or help would be appreciated.

 

1 Reply

  • Hi Stephen,

    You can use the following irule to accomplish your goal:

    when HTTP_REQUEST {
    if {([HTTP::uri] starts_with "/test1") || ([HTTP::uri] starts_with "/test2") || ([HTTP::uri] starts_with "/test3") || ([HTTP::uri] starts_with "/test4") }{
    HTTP::uri "/testZ[string range [HTTP::uri] 6 end]"
    }
    }