Forum Discussion
chadri_15545
Nimbostratus
Nov 07, 2008iRule 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
- chadri_15545
Nimbostratus
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.
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