Home page redirect loop
-
I’m having a redirect loop issue similar to what’s been discussed here: https://wordpress.org/support/topic/homepage-infinite-loop?replies=16#post-6883074
Re-saving the settings fixes the problem, but it re-appears occasionally (I believe when we deploy updates).
I found it’s cached in the serialized array in “_transient_pll_languages_list” and interestingly the redirect loop happens when the “home_url” variables are like “/en/” and then when settings are re-saved the home_url is updated to “http://www.mydomain.com/en/”.
Before:
s:8:"home_url";s:7:"/en-ca/";s:10:"search_url";s:7:"/en-ca/";After:
s:8:"home_url";s:36:"https://www.mydomain.com/en-ca/";s:10:"search_url";s:36:"https://www.mydomain.com/en-ca/";The difference only occurs for secondary languages and in the home_url and search_url values. The primary language appears ok.
Might this be a bug that’s causing the values to sometimes be set to just “/en/”? Or can you suggest a workaround to prevent this redirect from happening?
Thanks
The topic ‘Home page redirect loop’ is closed to new replies.