Forum Discussion
vivekrane_30542
Jan 08, 2017Nimbostratus
HTTP Redirect with 302 response
Hello friends,
I am pretty new to irules. I want to set web portal servers behind f5 with initial authentication url http://xyz.com/index.jsp
.whenever clients http request comes with any oth...
Hannes_Rapp
Jan 08, 2017Nimbostratus
Many ways to solve this. If you do not intend to write your own iRules in the long term, look into LTM Local Traffic policies (no TCL coding required). In case of an iRule solution, here's how I'd approach the problem
when HTTP_REQUEST {
switch [HTTP::host][HTTP::path] {
"xyz.com/" -
"xyz.com/index.jsp" {
do not interferre
return
}
default {
issue a temp 302 redirect
HTTP::respond 302 Location "http://xyz.com/index.jsp"
}
}
}
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