Forum Discussion
Irule to redirect all traffic to specific uri
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.
3 Replies
- Hamish
Cirrocumulus
have you searched the codeshare yet?
https://devcentral.f5.com/codeshare/http-to-https-redirect-301
Of course you'll need to adjust slightly, but the general structure is there. Just update the redirect address to whatever URL you require
- Kevin_Stewart
Employee
- Kevin_Stewart
Employee
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.
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