WPML / Flush Rules issue
-
Hello,
I had to intervene on the site of a customer who was encountering a problem.
After a long debugging, it turns out that your plugin poses a problem when used at the same time as WPML.
Indeed, as soon as we consult a page without language n°1 FR, then the htaccess is as follows:
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^en/wp-login.php /wp-login.php [QSA,L] RewriteRule ^fr/wp-login.php /wp-login.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
As soon as we consult a page in language number 2 (EN), then the .htaccess is the following
# BEGIN WordPress # Les directives (lignes) entre ? BEGIN WordPress ? et ? END WordPress ? sont générées # dynamiquement, et doivent être modifiées uniquement via les filtres WordPress. # Toute modification des directives situées entre ces marqueurs sera surchargée. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /en/ RewriteRule ^index\.php$ - [L] RewriteRule ^en/wp-login.php /en/wp-login.php [QSA,L] RewriteRule ^fr/wp-login.php /en/wp-login.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /en/index.php [L] </IfModule>
All this is problematic, on the one hand because the .htaccess file does not have to be written each time it is loaded.
On the other hand, because it generates many 500 errors.
Also, I would like to point out that this is happening with the latest version, i.e. Version 2.11.0
(WPML is 4.6.9 )
Could you correct this please?
- The topic ‘WPML / Flush Rules issue’ is closed to new replies.