• Resolved mikaelhuldin

    (@mikaelhuldin)


    Hi,

    I am currently working on translating my website to a second language by using Polylang plugin. But I have problems with redirect loop that occurs on the second language. The main language works as it should, but the second language pages end up in a redirect loop. I have noticed that it loops between following URLs:

    http://www.site.com/en/page <-> http://www.site.com/page

    If have found that it is caused by the forced SSL code i have in .htaccess file. If i remove the code all is fine but i do not have SSL. Anyone have a solution to this and to keep SSL for my site?

    Following SSL code in .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.site.com/$1 [R,L]
    </IfModule>

    Thanks,
    Mikael

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hi,

    I suggest that you undo all what you have done and install the plugin Really Simple SSL.

    Thread Starter mikaelhuldin

    (@mikaelhuldin)

    Hi,

    Thanks for the reply, but i already tried that and same problem. I resolved it by changing translation plugin.

    Br,
    Mikael

    mrgutoa

    (@mrgutoa)

    This is happening to me now too (Although I haven’t played around with SSL

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Forced SSL causing redirect loop in second language – Polylang’ is closed to new replies.