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...
JRahm
Admin
Jun 28, 2006You can use the datagroups for multiple URI and redirects:
class Region1 {
"URI1 mapped_redirect_URL1"
"URI2 mapped_redirect_URL2"
"URI3 mapped_redirect_URL3"
"URI4 mapped_redirect_URL4"
}
when HTTP_REQUEST {
if { matchclass [string tolower [HTTP::uri]] equals $::Region1 } {
HTTP::redirect [findclass [string tolower [HTTP::uri]] $::Region1 " "]
}
}Note that the class is defined outside of the iRule window on the datagroups tab.
HTH,
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