Hi everyone, I need your urgent assistance in preparing an irule. I would like to redirect all application traffic to specific uri.
Thanks to all.
Hi everyone, I need your urgent assistance in preparing an irule. I would like to redirect all application traffic to specific uri.
Thanks to all.
have you searched the codeshare yet?
Of course you’ll need to adjust slightly, but the general structure is there. Just update the redirect address to whatever URL you require
Can you elaborate?
It can’t be anything, because “/services/int/portal.svc” falls within that scope. So maybe something like this?
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] ne "/services/int/portal.svc" } {
HTTP::redirect "/services/int/portal.svc"
}
}
But then this assumes that “/services/int/portal.svc” is the only accessible URI path.