Forum Discussion
Ram_T_S
Jul 12, 2018Altostratus
Irule Query
1)Can we point multiple requests to multiple VIP by doing a redirection? Eg: http://home.xyz.com should still point to SharePoint 2010 server and when user hits
•[http://home.xyz.com/Site1(shou...
Andy_McGrath
Jul 13, 2018Cumulonimbus
Using a switch statement in your HTTP_REQUEST event iRule would be best, something like this:
switch -glob [string tolower [HTTP::uri]] {
"/site1*" {
this will match on any string that starts with "/site1
HTTP::redirect https:://new.home.xyz.com[HTTP::uri]
}
"/sitea*" {
this will match on any string that starts with "/site1
HTTP::redirect https:://new.home.xyz.com/Site1/[HTTP::uri]
}
}
For help on using switch statements in iRules see this helpful article iRule 101 Switch
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