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.

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 5 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year ago.

Assisted by: Marsel Nikolli.

Author Posts
November 17, 2023 at 3:47 pm #14864779

davidF-18

Hi,

On a regular basis, the sub pages on this site return a 500 error.

Investigation shows that the rewrite rules in .htaccess have been changed and the site is looking for content in /es/. But /es/ doesn't exist.

Changing the rules in .htaccess (see attached) or resaving the permalinks fixes the issue immediately. But it keeps reoccurring and the client is losing faith.

It appears to be WPML related because it is the rewrite rules relating to languages that are being changed.

Can you help?

Thanks,

David

500 error htaccess info.jpg
November 17, 2023 at 4:57 pm #14865291

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you today.

This this issue actually 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 showed 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.

Let me know how it goes.

Kind regards,
Marsel

November 17, 2023 at 5:01 pm #14865297

davidF-18

Hi Marsel,

Thanks for the quick reply, we'll try the wp-config change recommended in the errata and I'll let you know how we get on.

Have a good wekeend,

David

November 17, 2023 at 5:06 pm #14865393

Marsel Nikolli

Hi David,

Sure, take your time.
Let me know if you need any help.

Have a nice weekend too,
Marsel

November 20, 2023 at 8:00 am #14873555

davidF-18

Still waiting to see if suggested fix works.

Thanks,

David

November 20, 2023 at 8:38 am #14873915

Marsel Nikolli

Hi David,

Sure take your time, no problem.

Let me know how it goes.

Kind regards,
Marsel

The topic ‘[Closed] htaccess rules being rewritten’ is closed to new replies.