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.

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 months, 3 weeks ago.

Assigned support staff: Jamal.

Author Posts
June 19, 2019 at 11:46 am #4051225

esperanzaG-2

I am trying to:

Our server gives an error 500 when I access the website. This is because the htaccess file is automatically changed when the multilingual option with WPML is activated, WordPress write these lines of code in htaccess file that give error in our server:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /en/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /en/index.php [L]
</IfModule>

# END WordPress

If I change the following code lines in the htaccess file error 500 disappears. The serious thing is that wordpress changes this file continuously. The code that does not give error:

# 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

-------

Link to a page where the issue can be seen: hidden link

June 19, 2019 at 12:14 pm #4051353

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for contacting WPML Support. I will be glad to help with this.

A workaround solution would be to set the .htaccess as a read-only file from your hosting panel.

This issue is usually provoked by another theme or plugin that interfere with WPML. To investigate it, switch to a default theme and deactivate all plugins and test again. If the issue is happening with only WPML, we should take a copy of your website and investigate this issue by one of our developers.
If it does not happen, deactivate WPML, and each time activate a plugin and activate WPML to see which plugin causes this issue.

Best regards,
Jamal
WPML Support