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 successinhig...
Kevin_Stewart
Employee
Feb 19, 2014Try this:
when HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] equals "www.mathzone.com" ) and ( [HTTP::uri] ne "/" ) } {
HTTP::redirect "http://successinhighered.com/math/"
}
}
If I understood you correctly, if the user adds ANY URI at all, you want to redirect them. So
http://www.mathzone.com does not redirect
http://www.mathzone.com/blah does redirect
Is that correct?
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