Forum Discussion
dp_119903
Mar 17, 2014Cirrostratus
Simple Logout redirect irule
I have some sites that I need to redirect to an external URL. I have figured that out with an irule
when HTTP_REQUEST {
HTTP::redirect "https://OTHERSITE.com[HTTP::uri]"
}
On the extern...
Kevin_Stewart
Mar 17, 2014Employee
Try this:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/logout.html" {
HTTP::respond 200 content [ifile get "generic_apology.htm"]
}
"/generic_apology_pic.jpg" {
HTTP::respond 200 content [ifile get "generic_apology_pic.jpg"] "Content-Type" "image/jpeg"
}
}
}
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