Hi,
I review the code and I was able found the root of my issue. As it is a staging site only and runs on http connection the cookie should control the first redirect is not being set as the connection is not secure. That is why the rule “Redirect on first visit only” was not working in my case. Adjusting the function setcookie in line 996 solved my problem:
setcookie('ip2location_redirection_first_visit', time(), strtotime('+24 hours'), '/', null, false, true);
Cheers,
Gabor