Forum Discussion

qq_125825's avatar
qq_125825
Icon for Nimbostratus rankNimbostratus
Sep 17, 2013

iRules for default html website

Hello,

 

I have the following iRule for a default website with www.test-website.com, that means, if F5 get request test-website.com, it should rediret to www.test-website.com/test/test.html. But it does not works. Can anyone help me?

 

when HTTP_REQUEST { if {([HTTP::host] equals "www.test-websit.com" and ([HTTP::uri] equals "")} { HTTP::uri "www.test-website.com/test/test.html" } }

 

2 Replies

  • it works now! Thank you What Lies Beneath! it should be when HTTP_REQUEST { if {([HTTP::host] equals "www.test-websit.com" and ([HTTP::uri] equals "/")} { HTTP::uri "test/test.html" } }