Troy_94246
Jan 27, 2014Nimbostratus
Single I-rule with 1000+ URI Redirect
We are working on a Web site refresh and have been asked to use Big IP to redirect over 1000 pages based on URI to a different URI on same page. We have different options to do this with I-rule but I have never did an I-rule with 1000 plus redirects. Is one of the options below better than the other when there is so many redirects?
Hardware LTM 3600 running BIG-IP 10.2.4 Build 655.0 Hotfix HF4
Option 1
when HTTP_REQUEST { if {[HTTP::path] eq " /aboutus/ContactUs/index.html"}{ HTTP::redirect "http://[HTTP::host]/en/about/contact" } Repeat IF for every URI redirect }
OR Option 2
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/aboutus/ContactUs/index.html"}{
HTTP::redirect [string map {/aboutus/ContactUs/index.html /en/about/contact} [HTTP::uri]]
}
Repeat IF for every URI redirect }
Or is there a better option all together?