Forum Discussion
Cory_50405
Mar 17, 2014Noctilucent
Brett,
Something like this should work by catching /test, or anything after it:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/test*" -
"/test1/*" { HTTP::redirect "http://redirected.server.com[HTTP::uri]" }
default { pool POOL_MainPool_Server-80 }
}
}
- Brett__01_13258Mar 17, 2014NimbostratusHi Cory thanks for the reply THe issue with the rule above is it will also catching /testing for example What i need it to do is only redirect /test and /test/whatever but not anything after /test such as /testing I may have to include double rules?