Forum Discussion
jato_40959
Nimbostratus
May 10, 2010Irule redirects
Hello all,
Can I do this in only one irule?
Uri to Uri, and Uri to Url
Thanx and regards
Prefix: /Institucional/comercial/Acuerdos/entrada_acuerdo.asp
...
hoolio
Cirrostratus
May 11, 2010A switch statement would probably be easier to set up and manage. Here is a basic example you could use to get started with.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/Institucional/comercial/Acuerdos/entrada_acuerdo.asp*" {
HTTP::uri "/onlineCetelem/FcControlador.srvl?COMANDO=ENTRADA_ACUERDO&URL_LOGICA=ACUERDOS&;"
}
"/Institucional/comercial/Acuerdos/Entrada_acuerdo.asp*" }
HTTP::uri "/onlineCetelem/FcControlador.srvl?COMANDO=ENTRADA_ACUERDO&URL_LOGICA=ACUERDOS&;"
}
"/zonacliente*" {
HTTP::uri "/zonaClienteCetelem/;"
}
default {
Take some default action?
}
}
}
Aaron
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