Forum Discussion
winifred_corbet
Nimbostratus
Aug 18, 2010Dozens of 301 redirects - can we use --- class 301_redirect
We have many irules that handle nothing but 301 redirects, for example, dozens of these types of entries in on irule.
We are looking for a way to streamline and make more efficient irules si...
naladar_65658
Altostratus
Aug 19, 2010In my mind setting up thousands of those using either method is going to be a beast. In this kind of situation (URI matching) Data Groups really are useful when you have several URI's that would use the same 301 Location. So you have a many-to-one mapping with your Data Group. In your situation though it sounds like you have a one-to-one mapping with your Data Groups, meaning one datagroup is only going to match one URI path and then redirect to one 301 Location. I am not certain of the best method in this case.
Something I haven't really done or thought of before, but what if you stacked multiple switch statements on a VIP? If you kept each one under 150 entries would 5 of those on a VIP run faster than one iRule using class match against 1,000 datagroups? If the switches are still faster stacked on top of one another Winifred could create several switch statements, order his URI's alphabetically and label his switches like A-J and K-Z....
I will see if I can type you up a quick example here shortly for the class match command Winifred.
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