Title: Incompatibilité Polylang et W3TotalCache en HTTPS
Last modified: January 29, 2017

---

# Incompatibilité Polylang et W3TotalCache en HTTPS

 *  [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/)
 * (@lemagcinema)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/incompatibilite-polylang-et-w3totalcache-en-https/)
 * 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)

 *  [markkelly1982](https://wordpress.org/support/users/markkelly1982/)
 * (@markkelly1982)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/incompatibilite-polylang-et-w3totalcache-en-https/#post-8719149)
 * 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](https://wordpress.org/support/users/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](https://wordpress.org/support/users/lemagcinema/)
 * (@lemagcinema)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/incompatibilite-polylang-et-w3totalcache-en-https/#post-8736187)
 * 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](https://wordpress.org/support/users/lemagcinema/)
 * (@lemagcinema)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/incompatibilite-polylang-et-w3totalcache-en-https/#post-8736220)
 * Here is my configuration regarding redirections:
 * 1/ There are several OVH redirections thanks to their admin tool:
    lemagcinema.
   fr and [http://www.lemagcinema.fr](http://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 [http://www.lemagcinema.com](http://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](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](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](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](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://%](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 …
    -  This reply was modified 9 years, 4 months ago by [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/).
    -  This reply was modified 9 years, 4 months ago by [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/).
 *  Thread Starter [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/)
 * (@lemagcinema)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/incompatibilite-polylang-et-w3totalcache-en-https/#post-9060571)
 * 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.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/incompatibilite-polylang-et-w3totalcache-en-https/#post-9060571)
 * Status: not resolved