Auto-update of Ninja Forms on multilingual website destroys permalinks
-
I have multiple websites where every auto-update of the Ninja Forms plugin destroys the permalinks in a way that all frontend pages show an error 404 (while the backend works normally). After refreshing the permalinks everything is fine again. One thing these websites have in common is that they are multilingual (WPML).
Comparing the .htaccess file before and after, you can see two differences:
### when the error 404 is present <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /fr/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /fr/index.php [L] </IfModule> ### when the permalinks have been refreshed <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
So obviously there is an issue with the /fr/ part. But why does this happen? And why do only auto-updates of the Ninja Forms plugin trigger this problem on a regular basis, while all other auto-updates run smoothly?
- The topic ‘Auto-update of Ninja Forms on multilingual website destroys permalinks’ is closed to new replies.