This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing 'Internal Server Error' issues, which seem to be related to the WPML plugin modifying the .htaccess file. Solution: 1. Refer to the workaround suggested in the following documentation: Why is .htaccess getting overwritten with the language folder on my WPML website? 2. Re-save Permalinks from the Settings >> Permalinks page by pressing the 'Save Changes' button. 3. Clear all sorts of site/server/CDN cache.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to resolve an issue where the WPML plugin modifies the .htaccess file, causing 'Internal Server Error' problems. The host corrected the .htaccess file from: <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> to: <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> and added: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress. They suggested deactivating the plugin to check if the problem persists. The issue can be seen at: hidden link
Symptoms:
I am experiencing 'Internal Server Error' problems, which seem to be related to the WPML plugin's modifications to the .htaccess file.
Questions:
What can we do to prevent the problem from happening again?
Hello Drazen,
I tried to add the code on functions.php but I don't find the "Editor" on WordPress to add the code.
Do you know where can I find it?,
Thank you so much,
Hello again Drazen,
Finally I added the code via Code Snippets plugin. I attach you a screenshot.
Could you let me know if I added it correctly?,
Also I deleted the cache,
Do I have to do something more?,
Thanks so much,