Forced SSL causing redirect loop in second language – Polylang
-
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
The topic ‘Forced SSL causing redirect loop in second language – Polylang’ is closed to new replies.