Forum Discussion
skkg_111590
Dec 23, 2010Nimbostratus
need help with irule
Hi all,
I am trying to develop a new iRule. I have built this below but cannot figure why its not working.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/"} {
HTTP::redirect
}}
The requirement is to check if there is NO URI and append "/pls/htmldb/f?p=330". If there is a URI then do nothing.
Thoughts?
- hoolioCirrostratusHi,
when HTTP_REQUEST { if { [HTTP::uri] eq "/"} { HTTP::redirect "http://[HTTP::host]/pls/htmldb/f?p=330" } }
- skkg_111590NimbostratusThanks I tested this and look like its all working.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects