Forum Discussion
Javi_Lora
Jul 19, 2021Altostratus
redirect error 500 with context
Good, I am trying to create an irule in F5 that after a 500 error in one url redirects me to another but keeping all the uri. For example: https://portafirmas.es/portafirmas/informe...
Jul 19, 2021
Hi Javi Lora,
when HTTP_REQUEST {
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
if { [HTTP::status] eq "500" } {
HTTP::redirect "https://portafirmasng.justicia.junta-andalucia.es[string map {portafirmas pfirmaNG} $uri]"
}
}
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