Forum Discussion
Ed_Summers
Jun 22, 2017Nimbostratus
Is that an exact replication of your iRule? The second 'if' condition includes upper-case characters in the test statement. The HTTP Host header evaluation should be case insensitive. Typically your test string will be all lower-case, and you can take a step further by performing a 'string tolower [HTTP::host]' to ensure the header value is all lowercase, though not necessary in many cases. Change your second test string to "euhreka.hr.com".
(Reference the HTTP::host page on DevCentral)
If the issue was that you could never match to the second 'if' condition, this is likely your issue. There also appears to be a trailing semi-colon after the HTTP::redirect in your second section - was that intentional?