Hello,
is there a way to force the real visitor IP to be detected behind Traefik?
I get those lines in debug.log :
Debug Log : 2024-10-22 11:04:45 Visitor IP 192.168.48.1 Redirection terminated. Unable to detect visitor country!
Thanks
]]>Hello! Great plugin, logical interface, and seems well built. However, I’ve added a bunch of countries to redirect on and the debug log only shows ‘Redirection terminated. Unable to detect visitor country!’ for every entry along with the IP. I have no successful redirects or country detects.
Here’s my json:
{“redirect_switch”:”true”,”dev_mode”:”false”,”dubug_log”:”true”,”skip_if_bot”:”false”,”skip_if_skipredirect_provided”:”false”,”redirect_for_first_time_visit_only”:”false”,”redirection_type”:”302″,”redirect_rules”:[{“countryField”:[“AT”,”BE”,”BG”,”HR”,”CY”,”CZ”,”DK”,”EE”,”FI”,”FR”,”DE”,”GR”,”HU”,”IE”,”IT”,”LV”,”LT”,”LU”,”MT”,”NL”,”PL”,”PT”,”RO”,”SK”,”SI”,”ES”,”SE”],”TargetURLField”:”https:\/\/google.com”,”VisitedURLField”:”\/(.*)”,”FromChkCondition”:”from”,”PassParameter”:”false”,”IgnoreParameter”:”false”}]}
And a snippet of debug.log:
Debug Log : 2024-09-25 12:33:02 Visitor IP 35.212.76.209, 35.212.76.209 Redirection terminated. Unable to detect visitor country!
Debug Log : 2024-09-25 12:33:02 Visitor IP 174.226.245.40, 174.226.245.40, 174.226.245.40 Redirection terminated. Unable to detect visitor country!
Debug Log : 2024-09-25 12:33:06 Visitor IP 134.22.7.138, 134.22.7.138, 134.22.7.138 Redirection terminated. Unable to detect visitor country!
Debug Log : 2024-09-25 12:33:08 Visitor IP 10.156.108.23 Redirection terminated. Unable to detect visitor country!
Using WordPress 6.6.2, php 8.2.
Thanks for any help!
]]>Hi,
Last version was auto-updated yesterday and broke the website, as the php version used is 7.4 and your new version seems to require 8.1 (this is not mentionned in changelog).
Why don’t you test the php version control before updating to avoid crashing sites ?
Regards,
Francis
Hey there, I’ve setup up the plugin correctly and seems to be looking correct, but after trying to access the page, the GEOIP redirect don’t seem to be working, please can you help?
]]>Hi everyone ??
Great plugin so far! I have a special request, maybe easy to accomplish:
WordPress is running as Multisite (Directory Type). I’m trying to use the redirect plugin on the “Permalink to a file” (every File, e.g. PDF, gets a Permalink in WordPress). Should work like this: URL to PDF on one Site is called and should be (automatically, depending on the country) forwarded to a file on an other Site.
Permalink: https://mydomain.com/permalinkToFile would point to https://mydomain.com/wp-content/uploads/xyz.pdf in Country 1, and point to https://mydomain.com/country2/wp-content/uploads/xyzCountry2.pdf in Country 2
is that managable? Or would I need aworkaround? Test showed that it doesn’t work out of the box for that special case.
Thanks for any hints in advance!
Hi!
I’m trying to get redirections to work.
The log file states:
Debug Log : 2024-01-30 08:38:26 Visitor IP 34.141.62.20, 34.141.62.20 Redirection terminated. Unable to detect visitor country!
I’m i missing something?
Regards / Anders
Hola,
Tengo un problema con el plugin, mi sitio maneja 7 idiomas usando “www.ejemplo.com” como el idioma inglés, “www.ejemplo.com/es” para espa?ol, etc. El sitio tiene un menú que direcciona a los demás idiomas mediante url, pero cuando configuro el plugin para redirigir al idioma que corresponda a su IP no me permite cambiar al idioma inglés desde el menú y cuando deshabilito la redirección me deja cambiar al inglés desde el menú.
]]>Could you please consider adding pagination for the rules created in the backend in the next update? Currently, I have around 140 rules, and the page takes a long time to load. Additionally, it would be great to have a “clone rule” feature, at least for the countries that are already inserted. Thank you.
]]>Hi, will it work If I provide a sub-directory, for example–example.com/jp, where example.com is for USA, and example.com/jp will be for japan and so on. I don’t want to buy separate domains for separate country.
Regards
]]>Hello!
I’m setting up
https://website.com/page1/ redirect to https://website.com/uk/page1/ for specific country users, and all work fine.
But if I want to put a rule for all pages (not create a separate rule for each page and post of website) I get a “very many redirects” error.
Im setting up this rule for many pages:
https://website.com/(.)/ redirect to https://website.com/uk/(.)/
whats wrong?
Hello Admin,
There’s a fatal error on the site when I was trying to edit with elementor, it’s causing the backend to crash when trying to edit using elementor. The redirection is active while trying to edit some content on elementor. [06-Mar-2023 01:42:57 UTC] PHP Fatal error: Uncaught ValueError: setcookie(): Argument #1 ($name) cannot contain "=", ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" in /wp-content/plugins/adv-geoip-redirect/includes/class.geoipr.redirect.php:258
Hello,
I know this is a normal regex, but it seems there’s a redirection after a redirection that results to “too many redirects”
Screenshot: https://tinyurl.com/2zgdmau9
Trying to redirect https://example.com/(.*) to https://example.com/europe/(.*) if selected countries are detected.
Example: https://example.com/about
It’s redirecting to: https://example.com/europe/about with “Too many redirects” error, then it’ll redirect again to “https://example.com/europe/europe/about” which also redirects back to “https://example.com/europe/about” with “Too many redirects” error.
Ive setup a redirect from the homepage of my site and it is working. However, it is also redirecting every other page on the site as well.
For example, I want to redirect traffic from test.com to test.com/one. This setup is also redirecting test.com/two to test.com/one. I want to setup a redirect for the homepage ONLY.
]]>WordPress version 6.0.3
Error happens when redirecting to DK, please find the debug screenshot
]]>Hello. Installed your plugin, it’s very convenient to use the “not from” setting, thank you very much for that. The problem is different, I activated the Only Redirect If First Time Visit option and created a rule, if the user is not from Ukraine, then redirect the site to the English version. But it turns out that the redirect occurs constantly, and not just once. I click on the link for the Ukrainian version, but I still get to the English version.
The rule looks like this:
Redirect if user is Not From Ukraine To /en/ When Visits /uk/
Or I also did this, because Ukrainian is the default language:
Redirect if user is Not From Ukraine To /en/ When Visits /
In the same way, I also registered the full path of the site.
Polylang is also installed, maybe it interferes, but browser language detection is disabled.
Hi
The plugin is working great on the front end, but I’m getting a fatal error when I try to run any WP-CLI command:
PHP Fatal error: Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in /sites/mysitenameishere/wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php:246
Stack trace:
#0 /sites/mysitenameishere/wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php(217): GeoIp2\Database\Reader->getRecord()
#1 /sites/mysitenameishere/wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php(90): GeoIp2\Database\Reader->modelFor()
#2 /sites/mysitenameishere/wp-content/plugins/adv-geoip-redirect/includes/class.geoipr.redirect.php(119): GeoIp2\Database\Reader->country()
#3 /sites/mysitenameishere/wp-content/plugins/adv-geoip-redirect/adv-geoip-redirect.php(554): GEOIPR_REDIRECT->__construct()
#4 /sites/mysitenameishere/wp-includes/class-wp-hook.php(303): WP_CLI\Runner->{closure}()
#5 /sites/mysitenameishere/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 /sites/mysitenameishere/wp-includes/plugin.php(470): WP_Hook->do_action()
#7 /sites/mysitenameishere/wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php on line 246
I’m running the latest version (1.0.1)
Thanks
Simon
Hi, I wanted to know if the plugin is compatible with litespeed cache plugin and wordpress multisite.
]]>Hello,
I am using this plugin to make a redirect to the correct language, depending on the user location.
I have set up these two redirects: From Germany, when visits: /mk/(.*)/, redirect to /de/(.*)/. And reverse for all users not from Germany.
My ideal use would be whenever the user opens the site in a new tab, the redirect works. If the user then changes the language using the language selector in the current tab, the redirect does not work.
I believe this can be achieved if the session is used to store the data that the redirect has happened instead of the cookies. Also this could be another option in the plugin options.
I am open to possibly contributing to the plugin and trying to set all of that up myself.
Regards,
Ljupche
I am getting this error:
Fatal error: Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen()
in /var/www/web25284762/html/wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php on line 246
Call stack:
GeoIp2\D\Reader::getRecord()
wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php:217
GeoIp2\D\Reader::modelFor()
wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Database/Reader.php:90
GeoIp2\D\Reader::country()
wp-content/plugins/adv-geoip-redirect/includes/class.geoipr.redirect.php:119
GEOIPR_REDIRECT::__construct()
wp-content/plugins/adv-geoip-redirect/adv-geoip-redirect.php:554
{closure}()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-settings.php:546
require_once()
wp-config.php:105
require_once()
wp-load.php:37
require_once()
wp-blog-header.php:13
require()
index.php:17
Hi,
Please:
1. Add the option for rule disable/enable
2. Move the “add new rule” button to be at the top of the rules table
3. Change order in gui and log – to be source > target. Today it is confusing
Thanks.
Hello,
I get “too many redirects” error to the correct target at the browser.
I enabled the debug log but I cannot find it – please direct me to it.
Thanks.