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 { [stri...
Kai_Wilke
MVP
Jan 20, 2016Hi Aviv,
if
[string tolower] is used for the given input, then you have to compare the outcome using lower case conditions... 😉
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "testform.aspx" } then {
HTTP::redirect "www.google.com"
}
}
Cheers, Kai
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