Forum Discussion
Aviv
Cirrus
Jan 20, 2016Redirect any request that ask for a page name contains
Hi !
i need to redirect any request that ask for a page name contains TestForm.aspx to google.com
i have tried this irule ,but it is not working for me:
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "TestForm" } { HTTP::redirect "www.google.com" } }
That wrong? how can i do it?
Thanks, Aviv Hassidim
2 Replies
Hi Aviv,
if
is used for the given input, then you have to compare the outcome using lower case conditions... 😉[string tolower]when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "testform.aspx" } then { HTTP::redirect "www.google.com" } }Cheers, Kai
- Aviv
Cirrus
thanks Kai. it is working now.
Aviv
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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