• Resolved Chris G

    (@chrisgarland919)


    Hi all,

    This website has two languages, English and Spanish, with the default set to English.

    With Polylang enabled or disabled, the homepage https://convientodelobos.com is redirecting to https://convientodelobos.com/es/inicio or https://convientodelobos.com/es, meaning that the homepage in English is permanently inaccessible. I am reproducing this in all browsers and without cookies. Disabled caching etc. The only redirect I have is in the .HTACCESS for redirecting to https from http.

    I understand that this may not be a Polylang support issue, since it is happening with the plugin disabled, but the redirect to the Spanish version was only introduced with the Polylang plugin, so it is my only hunch for what is going on.

    Please help me figure out the origin of this strange redirect, any assistance will be greatly appreciated!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The only redirect I have is in the .HTACCESS for redirecting to https from http.

    What happen if you disable the redirection?
    Is the main page already translated? When I open https://convientodelobos.com/en I get a 404 page error.

    Thread Starter Chris G

    (@chrisgarland919)

    What happen if you disable the redirection?

    Interestingly, now I can access the English homepage on https://convientodelobos.com, but https://convientodelobos.com is sending me to https://convientodelobos.com/es as before.

    Is the main page already translated? When I open https://convientodelobos.com/en I get a 404 page error.

    This is because it is the default language and doesn’t have the /en extension, the URL is just convientodelobos.com

    So…something in the HTTPS settings is causing the browser to redirect to the Spanish home page. Any ideas?

    So…something in the HTTPS settings is causing the browser to redirect to the Spanish home page. Any ideas?

    Not without seeing all settings.
    I would check the server settings. Regualr you can set up https support in a control panel of you server.
    But, it can be also a problem with other plkugins. Did you disable all plugins except Polylang? What happen if you do this?

    Thread Starter Chris G

    (@chrisgarland919)

    Thank you for all of your help Coder.

    But, it can be also a problem with other plkugins. Did you disable all plugins except Polylang? What happen if you do this?

    I actually discovered a conflict between Autoptimize and everything that was going on. Somehow it was caching the redirect and causing the issues for non-logged in users. I think everything is working smoothly now!

    Thank you for the link to the other thread; I tried some of the solutions there too.

    I actually discovered a conflict between Autoptimize and everything that was going on. Somehow it was caching the redirect and causing the issues for non-logged in users.

    hey Chris; I’m Autoptimize’s developer. AO optimizes CSS, JS and optionally images and google fonts, but it can not cache pages or redirects actually. The only thing where AO could have had an impact is in the JS optimizatoin; if Polylang uses JS to redirect the different languages, then just maybe something went wrong there, in which case excluding that JS from optimization should fix the issue.

    hope this helps,
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not able to access homepage in default language (always redirecting)’ is closed to new replies.