Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
.htaccess file shows rewrite with the language folders after I update the site.

Solution:
This issue arises due to some third party plugins/theme on your site and could be solved by adding the code in functions.php file from the below doc: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

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

Last updated by sven-erikU 1 year, 8 months ago.

Assisted by: Noman.

Author Posts
June 15, 2023 at 6:46 am #13829305

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing the login details. I have followed the below steps:

1. Added the below code to the wp-config.php file to increase the WP memory:

/* WP Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

2. Added the code from the below errata to the functions.php file of your child theme: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

3. Re-saved the permalinks from Settings >> Permalinks page.

After that checked the .htaccess file and it seems to be working correctly. Could you please check and confirm?

Thank you for your cooperation and patience

June 15, 2023 at 8:49 am #13830437

sven-erikU

Hi Noman !
Great. So far so good.... 🙂
I have checked the site (All 4 Languages, looks okay)
=====
- And I have now updated a post
- Purged Cache NitroPack
- Now lets wait until tomorrow and see If All Fine. So .htaccess not affected.
=====

June 15, 2023 at 10:29 am #13831425

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Ok that's nice to hear. Sure, please let me know tomorrow the result.

Thank you

June 16, 2023 at 11:08 am #13838821

sven-erikU

Yes, looks fine now.
Thanks Noman !! 🙂

June 16, 2023 at 3:44 pm #13841515

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for confirmation. Please mark ticket as resolved if its all good now 🙂 Have a great weekend.