Background of the issue:
I am trying to resolve 500 Internal Server Errors on my website, which my hosting provider says are caused by WPML rewrite rules in the .htaccess file. Here is the problematic section of code automatically generated: RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /en/ RewriteRule ^index.php$ - [L] RewriteRule ^bg/wp-login.php /en/wp-login.php [QSA,L] RewriteRule ^en/wp-login.php /en/wp-login.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /en/index.php [L] . This setup seems to conflict with the server configuration.
Symptoms:
My website is experiencing 500 Internal Server Errors, which are preventing pages from being indexed in Google Search Console due to 5xx server errors.
Questions:
Could you please help me resolve the 500 Internal Server Errors caused by WPML rewrite rules?