Forum Discussion
Joe_Pena_46781
Jan 25, 2017Nimbostratus
irule and redirect exception
we have a domain bankrate.com that redirects all request to , however need to make an exception for a particular URL NOT to redirect. for example: we do not want to redirect http://bankrate.com/filen...
Stanislas_Piro2
Jan 25, 2017Cumulonimbus
Hi,
you can use this irule
when HTTP_REQUEST {
if {[HTTP::host] equals "bankrate.com"} {
if {[HTTP::uri] equals "/filename.html"} {
pool MYPOOL
} else {
HTTP::respond 301 Location "http://www.bankrate.com[HTTP::uri]"
}
}
}
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