Forum Discussion

tayyib_muzaina_'s avatar
tayyib_muzaina_
Icon for Nimbostratus rankNimbostratus
Mar 18, 2014

How do I configure a url translation and/or Re-write with LTM 11.3 code..

Hello, I am new to F5 and I am confronted with a request to do a url re-write or redirect for an inbound client request to the my back-end server... So my client request. (( http://192.168.x.x/lastsearch/lookup_bank )) this request require a URL re-write or translated as ( http://192.168.14.17:92xx/lookup_bank/search )

 

1 Reply

  • Hi!

    As long as you have a Virtual server with port translation enabled and the pool members are listening to 92xx that part would be ok.

    As for the uri rewriting, you can try this one

    when HTTP_REQUEST {
    
        set uri [ string tolower [HTTP::uri]]
    
        if { $uri equals "/lastsearch/lookup_bank" } {
            HTTP::uri "/lookup_bank/search"
        }
    
    }
    

    /Patrik