iRule to match both URL and URI

Hello,

I know this is a total newbie question, but I haven’t been able to find an example of what I need to accomplish with an iRule. I need to set up an iRule that will match both a specific URL and the beginning of a URI. The iRule will be applied to a VIP that responds to several different URLs, so I don’t think that simply specifying the URI starts_with will work.

Here is an example of what I am trying to accomplish:

If the URL equals www.whatever.com and the URI starts with /test (www.whatever.com/test/index.aspx), then redirect to test.whatever.com/test/index.aspx

Thanks in advance,

Chris

Never mind on this request. Putting a simple and between the HTTP::host string and the adding the HTTP::uri string worked out just fine.

Thanks