When switching language, site crashes ( 500 Internal Server Error message)
-
Hello
`I am using the WPML plugin for multilingualism,
I’m having a problem because of All In One WP Security & FirewallWhen anyone changes the language on the site to English Then back to the original language , the site crashes and the following appears
”
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.”
The site is down for a long time
it makes the change in the .htaccess file
As soon as the code is modified, the site works without a problem, then as soon as you change the language, the code changes again
************************Before *******************
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /en/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /en/index.php [L]
</IfModule>This code is correct and the site works without a problem and the previous code site becomes disabled
************************Corrected rule ********************************
<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>https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/
I found here a description of the problem and a way to solve it temporarily, then I tried to go back to the old versions All In One WP Security & Firewall 4.4.9 and it solve the problemThe page I need help with: [log in to see the link]
- The topic ‘When switching language, site crashes ( 500 Internal Server Error message)’ is closed to new replies.