Forum Discussion
Aug 17, 2010
matchclass, code okay, and would you do this differently?
Okay so I'm looking to redirect requests to mydomain.com and http://www.mydomain.com/ to https://www.mydomain.com/secure, if no matches load balance to the pool specified in the VS.
Is this ...
Chris_Miller
Altostratus
Aug 17, 2010Posted By iRuleYou on 08/17/2010 10:45 AM
hmmm when I was first figuring out findclass hoolio had an example with using set, and I've been using it ever since... do you need it for findclass and not matchclass?
The code I posted compiled fine but did not work.. I'll give it a try without setting my host..
When doing class searches, you'd typically use "set" if you wanted to set a variable to the value that corresponds with a data group entry. If you're simply checking whether the host exists in the data group, all you need is the "if, eq"
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