• Bonjour, Polylang ne fonctionne plus depuis que je suis passé en https.
    mon site en .com redirige systématiquement sur mon site en .fr

    si je désactive W3TotalCache, cela marche de nouveau.

    Mais je n’arrive pour le moment pas à voir quelle option de W3TotalCache pose problème, car si je dois choisir entre W3TotalCache et Polylang, je choisirais le premier … pas envie de passer sur un truc payant, et j’ai déjà migré de SuperCache à W3TotalCache car le premier me posait problème.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also having a similar problem to what’s described above. Sometimes my site get’s stuck on a language sub page and it can’t get back to the base domain language at the .com

    @lemagcinema One solution with W3Cache is under ‘Page Cache’ tick ‘Don’t cache front page’.

    Try that and then clear you cache.

    Maybe the developers know if this is a new issue or is something that they can fix on their side?

    Thread Starter le.mag.cinema

    (@lemagcinema)

    Thks for your answer, but I guess your problem is different, because your solution has no effect on my problem (and furthermore it is a solution that is quite the same as deactivating W3TC) … I hope someone could help me, I really think it is a problem of W3TC, maybe when it used in conjonction with a third part, I think OVH CDN maybe ? Or the configuration I made on ovh server to migrate to https (which was complex) …

    Thread Starter le.mag.cinema

    (@lemagcinema)

    Here is my configuration regarding redirections:

    1/ There are several OVH redirections thanks to their admin tool:
    lemagcinema.fr and https://www.lemagcinema.fr are redirected to an IP adress which is supposed to access both the wordpress site and the OVH CDN
    lemagcinema.com and https://www.lemagcinema.com are redirected to the same IP adress

    2/ my wordpress installation is under www/wp not www directly (but wp is not used thanks to wordpress configuration)

    3/ polylang is supposed to perform redirections in a way I don’t know

    4/ under the www directory, I have a main .htaccess file,
    there are several redirections a, b and c in this order in the file:

    a/ at the beginning of the file, I used custom instructions to add https redirection:

    # Redirection vers HTTPS
    RewriteCond %{HTTP_HOST} ^lemagcinema.fr [NC]
    RewriteCond %{REQUEST_URI} !_index.
    RewriteCond %{SERVER_PORT} ^80$ [OR]
    RewriteCond %{HTTPS} =off
    RewriteRule ^(.*)$ https://lemagcinema.fr/$1 [R=301,L]

    RewriteCond %{HTTP_HOST} ^www\.lemagcinema.fr [NC]
    RewriteCond %{SERVER_PORT} ^80$ [OR]
    RewriteCond %{HTTPS} =off
    RewriteRule ^(.*)$ https://lemagcinema.fr/$1 [R=301,L]

    RewriteCond %{HTTP_HOST} ^lemagcinema\.com [NC]
    RewriteCond %{SERVER_PORT} ^80$ [OR]
    RewriteCond %{HTTPS} =off
    RewriteRule ^(.*)$ https://lemagcinema.com/$1 [R=301,L]

    RewriteCond %{HTTP_HOST} ^www\.lemagcinema\.com [NC]
    RewriteCond %{SERVER_PORT} ^80$ [OR]
    RewriteCond %{HTTPS} =off
    RewriteRule ^(.*)$ https://lemagcinema.com/$1 [R=301,L]

    b/ W3TC performs adds its own redirection:
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteRule .* – [E=W3TC_SSL:_ssl]

    # END W3TC Page Cache core

    c/ wordpress adds its own redirections

    5/ because my domain also has a forum which is available on lemagcinema.fr/forum I also had to add some redirections in an .htaccess file under /www/forum

    At the end of the file, I added:

    # Redirection vers HTTPS
    RewriteCond %{SERVER_PORT} ^80$ [OR]
    RewriteCond %{HTTPS} =off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    (this configuration works – except the present issue on lemagcinema.com – but I did not understand why I had to also add these lines, because those in the root .htaccess file could have been enough I thought)

    I hope the W3TotalCache and polylang dev teams read this forum …

    Thread Starter le.mag.cinema

    (@lemagcinema)

    I decided to quit W3TC because of that.
    I also had a lot of big issues with https (HTTP 500 error), which decide me to move to wp-rocket which seems quite better.
    polylang may not work as well with wp-rocket, I am testing now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incompatibilité Polylang et W3TotalCache en HTTPS’ is closed to new replies.