Support » Plugin: IP2Location Redirection » Redirect Rule matched but no redirection

  • Luciano Castro


    I have the plugin setup to save the logs, it used to work fine but now it’s not redirecting the users.

    I checked the log, and it matches the redirect rule, but then it does nothing.

    I have WP Rocket installed but disabling it didn’t fixed the problem.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ip2location


    Can I know what rule you set and the content of the log?

    Thread Starter Luciano Castro


    Turns out that the plugin doesn’t have a wildcard functionality, we don’t know why it was working before, but I added a piece of code to be able to use “xx” as wildcard for a subdomain and now it’s working

    ip2location-redirection.php on function redirect after line 1029

    if (substr($url_from, 0, 2) == 'xx') {
        if ($url_to != $_SERVER['HTTP_HOST']) {
            $this->redirect_to(str_replace($_SERVER['HTTP_HOST'], $url_to, $this->get_current_url()), $http_code);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect Rule matched but no redirection’ is closed to new replies.