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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 1 reply, has 2 voices.

Last updated by Marsel Nikolli 8 months, 1 week ago.

Assisted by: Marsel Nikolli.

Author Posts
March 8, 2024 at 11:14 am #15388738

mauroG-14

Good morning, on the site:
hidden link

we have a problem that occurs about once a month.

We know it's a WPML-related problem, because I've read from several places that WPML is the cause and because what causes the problem is the change in the .htaccess file to the WPML RewriteRules. When this happens all pages, except the home page, give an error.

Upon investigation we saw that the problem is that WPML overwrites the correct .htaccess (listed first below) with one that has the wrong paths (listed second below).

It was not possible to understand if there is interference with other plugins, because it is a problem that occurs every now and then, without continuity and without apparent causes.

March 8, 2024 at 11:25 am #15388782

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

It might not be related to your issue, but from the debug info you provided, I noticed that you are using WordPress v6.2.4, I would suggest you update to the latest version

---

The issue you are facing is not caused by WPML, it comes from certain third-party plugins calling flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess.

I would suggest you try following the instructions shown in the errata here:
https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

After that try re-saving the permalinks and see if the issue still happens.

* Note: Please make sure you have a full backup of your website before making any updates/changes on your website.

Let me know how it goes.

Kind regards,
Marsel

The topic ‘[Closed] Wrong Htaccess RewriteRule’ is closed to new replies.