Forum Discussion
C_D_18583
Nimbostratus
Jun 27, 2006Apache mapping and F5 Irules
Here is one Apache mapping using mod_rewrite.
/cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=A http://at-consume.tsl.da.com:2200/telus-cp-portal-web/jsp/productcatalogue/person...
dennypayne
Employee
Jun 28, 2006If all the URIS in a datagroup go to the SAME redirect, then you can use datagroups, but if all the redirects themselves are different I don't see a way to do it, you'll have to call them out individually.
That is, if your datagroup called "Region1" includes the following URI's:
/cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=A
/cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=B
/cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=C
/cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=D
and you want them ALL to be redirected to:
http://at-consume.tsl.da.com:2200/telus-cp-portal-web/jsp/productcatalogue/personal/index.jsp
then this should work:
when HTTP_REQUEST {
if { matchclass [HTTP::uri] equals $::Region1 } {
HTTP::redirect "http://at-consume.tsl.da.com:2200/telus-cp-portal-web/jsp/productcatalogue/personal/index.jsp"
}
}But if the A,B,C,D variants above need separate redirects, then datagroups won't help you.
Denny
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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