Forum Discussion
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
- What_Lies_Bene1
Cirrostratus
The URI cannot be blank. try: equals "/" and it should work.
- qq_125825
Nimbostratus
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" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com