Long list of redirections on a Data Group that not always works
Hello everyone,
I need to make a lot of redirections depending on the uri (without a pattern), so I imported a file to a string Data Group and made an irule that checks the uri and make the appropriate redirection only if the uri is in the Data Group.
The problem is that sometimes works and sometimes not.
Is there a limitation on the number of entries in a Data Group that an F5 can manage appropriately? We work with software version BIG-IP v14.1.4 (Build 0.120.11) on a BIG-IP i4600, and the data group has more than 4K entries.
This is the irule:
when HTTP_REQUEST priority 1 {
set uri [HTTP::uri]
set pagina [ class lookup $uri redireccions_recercat ]
#set pagina [ class match $uri ends_with redireccions_recercat ]
if {$pagina ne ""} {
HTTP::redirect $pagina
#HTTP::respond 301 Location $pagina
}
else {
set pagina [ class lookup $uri redireccions_recercat_new ]
if {$pagina ne ""} {
HTTP::redirect $pagina
#HTTP::respond 301 Location $pagina
}
}
event disable
}
The second lookup is because the uri sometimes starts with one / and sometimes with // depending on the link, so I make two checks. I tried with a class match, but it did'n work...
That is the best approach? What's the problem with the "class match"?
Thank you so much!