Forum Discussion
Jim_Couch_16225
Jan 27, 2015Nimbostratus
So, the ] turned out to just be sloppy copy/pasting (and editing out the real details of the iRule) but you pointed me in a great direction. What I realized is that it is case sensitive. In another sample I am using the tolower but it doesnt seem to work. But if I type in the MyUrl.com exactly like I am matching then I get the redirect. So, I am pasting a better example in hopes that you know what I am missing with the tolower portion.
when HTTP_REQUEST {
if { (([string tolower [HTTP::host]] contains "My-Survey.com") or ([string tolower [HTTP::host]] contains "MySurvey.com")) } {
HTTP::redirect "https://www.surveymonkey.com/s/MySurvey"
}
}