Forum Discussion
Kirit_Patel_521
Nimbostratus
Feb 19, 2014irule not working
I have the following irule and i get syntax errors I dont know what i am missing Basically if someone type www.mathzone.com/blah or anything after www.mathzone.com/ i want to redirect to successinhighered.com/math/
what am i doing wrong?
when HTTP_REQUEST {
if {([string tolower[HTTP::host]] equals "www.mathzone.com") and ([string tolower[HTTP::uri]] starts_with "/*") }{
{
HTTP::redirect http://successinhighered.com/math/
}
}
1 Reply
- Sammo_Li_81151
Nimbostratus
I think starts_with cannot use "*" If you do, please use "matches_glob"
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