Forum Discussion
configt_17313
Nimbostratus
Oct 29, 2012Irule assistance: redirect or pool
Need a quick Irule that will redirect based on a specific URL, if that does not match then use a pool.
This was my first attempt, I do not have a way to test this until we cutover so I wanted to...
hoolio
Cirrostratus
Oct 29, 2012Can you try this?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.testurl.com"]}{
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else {
pool pool1
}
}
You could create a test virtual server and put a hosts file entry in a client for www.testurl.com to point to the test virtual server.
Aaron
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