Hello, I’m attempting to construct an iRule that looks at a header and URI, then performs a redirect if they match. This is what I’ve attempted but unsuccessful. I have multiple redirects based on different headers and URI’s, but this is a base of what I need to get started. Thanks in advance.
Maybe I did not understood well, but, as you mentioned “multiple headers”, have you a list of header names or you intend to look at any of them? I think I would do like this:
could it be that you wanna parse the HOST-header for a given site name and then apply some redirects based on the a given URI? If so then this code would do the trick…