Too many redirects to the correct target
-
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.
-
Can you show me the screenshot of backend settings?
I cannot upload files here
Use any free image sharing platform… like https://imgur.com maybe
Did you try using target as absolute url? Instead of / try with https://vsec.co.li?
I will try tomorrow, it is late here now. Will update you.
But what about the debug log file?debug.log
file should be in the plugin root folder.. check it by going to the root path of the plugin1. I changed the “When visit” to be https://vsec.co.il/ and it is still the same.
2. OK, now the debug.log was created and it shows multiple unneeded same redirects, but false ones from target to target… strange.
Also, you redirect every html object (e.g. css), while you should redirect only the first requestThe rule it to go to https://vsec.co.il/he/about-heb/ from https://vsec.co.il/
Debug Log : 2020-08-13 07:38:21 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/en/ Debug Log : 2020-08-13 07:38:21 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:38:42 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/wp-content/themes/arilewp/assets/css/bootstrap.css.map/ Debug Log : 2020-08-13 07:38:42 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/wp-content/themes/arilewp/assets/js/bootstrap.js.map/ Debug Log : 2020-08-13 07:39:22 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:23 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:24 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:24 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:25 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:26 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:27 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:28 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:28 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:29 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:31 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:31 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:32 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:33 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:34 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:35 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:37 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:38 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:40 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:40 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:41 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:42 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:43 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:44 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:44 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:46 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:47 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:48 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:49 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:50 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:51 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:52 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:52 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:54 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:54 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:55 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:56 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:57 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:39:58 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:40:00 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:40:01 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:40:02 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/ Debug Log : 2020-08-13 07:40:55 Visitor IP x.x.x.x Redirection succeeded! To https://vsec.co.il/he/about-heb/ From https://vsec.co.il/he/about-heb/
3. Also it will be good to change the display and log flow to match reality – meaning from source to target. Today it is the other way round, which is confusing.
4. I have a special situation in this site – it is using a plugin named “Polylang”, to support multiple languages, I have two, Hebrew and English. It uses as setting of “The language is set from the directory name in pretty permalinks
Example: https://vsec.co.il/en/my-post/” and “Detect browser language” is disabled to prevent it from redirecting by the user-agent language, not to harm this plugin.
Can you test it with this plugin?
I will test your plugin in a non-polylang site and report back hereOK, the exactly same thing happens on a simple site, non-polylang, I redirected the root to a page and I see to many redirects, again from the target to the target.
Please QA this.@eitanc have updated to a new version with some minor changes… please update and check again… hope infinite redirecting would stop now.. and plugin should work as per say
Better on a non-polylang site for now. Looks OK now but… – accessing directly to a deeper specific link, like site.com/page1 still run the redirect… which is not good (my rule is asking a redirect from the root of the site).
It is as if the rule is ending with “*”, meaning apply to also anything inside the base link.
You really should do proper QA before publishing a plugin.
Also – test it on WP 5.5, my current WP version (there is a warning at the WP plugin page that it is not supporting the current WP version), and add release notes and the new version to https://www.ads-software.com/plugins/adv-geoip-redirect/#developers
- The topic ‘Too many redirects to the correct target’ is closed to new replies.