Forum Discussion
Arie
Mar 19, 2009Altostratus
Have you considered using "switch" instead of if-then?
You could use a Data List, but you'd have to apply a few tricks to get the functionality of data pairs. For maximum performance, F5's recommendation is to use a Data List when you have more than 100 entries.
By the way, it looks like your iRule will not work for users who don't use "www." in the address.
Also, you're using 302 redirects, which is a temporary redirect. I'd recommend using a 301 (permanent redirect) - you can use HTTP::respond to achieve this.
Hope this helps.