Skip Navigation

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Marcel 1 year, 2 months ago.

Assisted by: Marcel.

Author Posts
September 1, 2023 at 7:20 am #14324649

thomasD-100

Good Morning,

I was working at the staging website when out of a sudden the production website broke down, but the staging website still works.
We got from our hosting server the following error:

The reason for this is that the plugin "sitepress-multilingual-cms" apparently always performs an adjustment in the rewrite block of WordPress in the .htaccess file.

####

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]

####

How can we solve the problem as soon as possible?

I can not actually get access to the production website and its wordpress dashboard and I can not provide any debug info

September 4, 2023 at 6:37 am #14333667

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

the language URL seems to be added to your .htacces by calling flush_rewrite_rules too often. Please try if this workaround works for you: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/.

Best Regards
Marcel