Forum Discussion
redirect error 500 with context
Good,
In the end I found the solution, I leave it here in case it is valid for someone.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/portafirmas/informeFirma" } {
set uring "/pfirmaNG/informeFirma?[HTTP::query]"
}
if { [HTTP::uri] starts_with "/portafirmas/downloadFile" } {
set uring "/pfirmaNG/downloadFile?[HTTP::query]"
}
if { [HTTP::uri] starts_with "/portafirmas/downloadSign" } {
set uring "/pfirmaNG/downloadSign?[HTTP::query]"
}
}
when HTTP_RESPONSE {
if { ([HTTP::status] eq "500") } { HTTP::redirect "https://portafirmasng.justicia.junta-andalucia.es$uring"
}
}
Salu2
Recent Discussions
Related Content
* 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