winifred_corbet
Aug 18, 2010Nimbostratus
Dozens 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 since we are coming up on a redesign,a nd we will need many more 301 redirects.
Can we use a type of data group list for all these entries? Then remove all these entries from the actual irule?
when HTTP_REQUEST {
if {
[HTTP::uri] equals "/cda//lots-of-stuff-here"
} {
HTTP::respond 301 Location "http://www.website.com/lists/mental.../index.php"
}
elseif {
[HTTP::uri] equals "/cda/verify-specific-url"
} {
HTTP::respond 301 Location ""
}