Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 2 days, 20 hours ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
November 24, 2025 at 3:10 pm #17605364

kathleenV

Background of the issue:
I'm trying to translate the website using WPML. The issue can be seen on this page: hidden link

Symptoms:
WPML string translations keep giving redirects, resulting in an Internal Server Error.

Questions:
Why does WPML string translation cause redirects?
How can I fix the Internal Server Error when using WPML?

November 24, 2025 at 3:42 pm #17605522

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

I would like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.

The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.

I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.

IMPORTANT

Please make a backup copy of the site files and database before giving us access.

- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:

hidden link

November 24, 2025 at 3:52 pm #17605595

kathleenV

Sending the ftp credentials

November 25, 2025 at 7:44 am #17606722

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hey there,

I've downloaded a copy of your website, but the issue is not happening there. I can access pages in any language and I don't get a server error. This indicates that the issue might be related also to your specific server.

In this case, I need you to please create a staging version of the website, where the issue also occurs. Please send me the link here, once you have it. You can keep the same user there, so it's not necessary to share credentials again.

Thanks in advance for your cooperation on this matter.

November 25, 2025 at 7:46 am #17606726

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hey there,

I've downloaded a copy of your website, but the issue is not happening there. I can access pages in any language and I don't get a server error. This indicates that the issue might be related also to your specific server.

In this case, I need you to please create a staging version of the website, where the issue also occurs. Please send me the link here, once you have it. You can keep the same user there, so it's not necessary to share credentials again.

Thanks in advance for your cooperation on this matter.

November 26, 2025 at 3:41 pm #17612804

kathleenV

Hi Lucas

We contacted our hosting provider Combell regarding the issue. According to their technical team, WPML appears to be creating a redirect loop and adding rules to the .htaccess file.

When they restored the .htaccess to a standard/default version, the problem was immediately resolved. This strongly suggests that WPML is modifying the .htaccess and causing the redirect loop.

You may perform any necessary tests or checks on the live environment if needed.

Could you please investigate what might be causing WPML to write incorrect or conflicting rules to the .htaccess file in our setup?

Thank you for looking into this.

November 27, 2025 at 10:05 am #17614438

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hey there,

Thanks for clarifying. In this case, it's a known issue.

Sometimes the .htaccess file gets overwritten so it incorrectly points to a language folder like /en/ or /de/. This usually happens because another plugin is repeatedly telling WordPress to rebuild its rewrite rules. When that happens too often, WordPress rewrites .htaccess, and because WPML adds language codes to URLs, the rewritten file ends up using the language folder as the site’s base. That breaks the site because all URLs start behaving as if the language folder is the root.

The real problem is the other plugin calling flush_rewrite_rules(true) too often, not WPML itself. The fix is to find which plugin is doing it and ask the developer to change that behavior. WPML also offers a temporary workaround: adding a small code snippet so the rewrite rules always point to the real site root instead of the language folder.

Please check more details and the solution here:
https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/

Let me know if you have any other questions.

November 27, 2025 at 1:20 pm #17615092

kathleenV

HI Lucas,

i see that the code snippet is already added?
So I guess everything is fine now?

Kind regards

Kathleen

Scherm­afbeelding 2025-11-27 om 14.19.19.png
November 27, 2025 at 2:43 pm #17615410

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hey there,

Yes, if the snippet is added and the issue is not occurring anymore, the issue is resolved.