Forum Discussion
fazinfar_29104
Nimbostratus
Jan 27, 2009direct the http request to new page
Hello everyone.
I am pretty new on Irules and don't know much about it.
I need to direct the http request to http://www.allforme.com/player
to http://www.allforme.com/main...
Jennifer_Davis2
Nimbostratus
Jan 28, 2009HTTP redirect is not sent to the client, however the URI changes on its way to the pool member
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/player" } {
HTTP::uri "/maintenance "
}
else {pool XYZ}
}
HTTP redirect is sent to the client. Matching on URI.
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/player" } {
HTTP::redirect "http://www.allforme.com/maintenance"
}
else {pool XYZ}
}
HTTP redirect is sent to the client. Matching on both host and URI.
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/player" and [HTTP::host] contains "allforme.com"} {
HTTP::redirect "http://www.allforme.com/maintenance"
}
else {pool XYZ}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
