Forum Discussion
ngmoletsane_156
Nimbostratus
Jul 23, 2015irule to redirect more than one url string to a sorry link.
I am currently redirecting one string, i am nor sure how i should configure the second string of the same url
so when i access home.co.za/hello it should redirect me to an oopps page. i also want the same for home.co.za/bye. Where to i configure this, do i include another if statement below that one or can i say 'contains "hello" or "bye"
Please help me guys, i hope my question makes sense.
home.co.za { if { ([HTTP::uri] contains "hello") } {
HTTP::redirect https://oppspame.co.za.html
}
pool home.co.za-443
}
1 Reply
- Richard__HarlanHistoric F5 Account
For this I would use a Switch statement
switch [HTTP::uri] { "/hello" { HTTP::redirect https://oppspame.co.za.html } "/bye" { HTTP::redirect https://oppspame.co.za.html } default { pool home.co.za-443 } }
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